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
r(1400) after meglmHi together, I tried to use meglm models according to this tutorial: https://stats.idre.ucla.edu/st…
Fill in the missing valueHello, I want to ask about how to fill in the missing values in my variables without having to do it…
can we generate 0,1 and missing values simutaneously? Code: gen A = B==0 & C==1 replace A = . if B== .| C==. In other words, can we simplify the two …
Obtain new variable after 3 consecutive signals and generate new values after 6 and 8 periodsHi! With the variable buy_signal I've created buy signals. I have the following rule after which I w…
Inquiry: Estimating Impact or Treatment Effect using cross sectional data (repeated)Dear Stata Users, I am a research student and I intend to conduct a research on the impact or effect…
Subscribe to:
Post Comments (Atom)
0 Response to Difficulty in stata codes
Post a Comment