I have three dta files for three sectors of an economy (and these are the only three sectors that constitutes the country): rural, urban, and semi-urban. Each of the files has 3000 observation. I have to run this OLS regression:
log(wage)= a+ summation b(sectors)+c(hhsize)+errors
where summation implies summation of sectors running from 1 to 3 and b represents their respective coefficients
Since it is a categorical variable the final results will have only 2 categories.
The catch is I have to run this equation at the national level but without loading the data for all sectors at one go, that means I cannot have more than 3000 observations when I am trying to run this equation at the national level which means appending is not to be done explicitly. This is a programming task that I have to accomplish. Please help!
Related Posts with Difficulty in stata codes
I would like to merge two databases but I can not merge firms with two ISINI use a database in which firms have sometimes two International Securities Identification Number (I…
Using egen rowtotalHi All I'm creating a variable named score1982 that should show the total number of conditions a su…
local list from variablesHi Statalists, I am trying to create a list from variables, that I can loop through. But the script…
GrowthHi, I have an unbalanced panel data with id year (1997-2003) and I would like to calculate the growt…
Converting C++ into STATA codeHi, I should say I am a novice! Is there any simple way of converting C++ coding into something I c…
Subscribe to:
Post Comments (Atom)
0 Response to Difficulty in stata codes
Post a Comment