Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: calculation of firm selection probability weight

From   Prakash Singh <>
To   statalist <>
Subject   st: calculation of firm selection probability weight
Date   Mon, 17 Sep 2012 23:08:55 +0530

Dear all

Please pardon me as I feel I am asking very basic question.I have two
questions to ask.

First, I am working with cross country firm level survey data. in the
survey data number of firm are varying country to country, industry to
industry, to reduce the effect of  uneven number of firms in the
pooled regression data I would like to run the regression with weight,
equal to the the inverse of the probability of being included in a
specfic country sample.

My question is how to calculate this probability of firm selection.

My second question is in the context of same cross country firm level
survey data
I want to generate variable X using Y such that Y is divided by sum of
Y at country level as well as industry level.

something like

gen X=Y/sum(Y) by (country industry)

Thanks in advance


*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index