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
Reshape wide to long variable not foundI have been trying to reshape my data from wide to long This is an example of how it looks like: I…
Panel - Loop collapse or egen with conditionDear all, I googled and tried many command from yesterday and until now it's still unsuccessful. Co…
Question about syntax optionsI am trying to write a program but am having difficulty with the syntax function Code: program de…
Difference-in-Differences Matching with Multiple Periods TreatmentHi Everyone, I would be so pleased to get some help concerning the following issue: I have done wi…
industry year regressions without firm i: additional retrictions can not be added?The Following code should run industry and year regressions excluding company i and then estimate th…
Subscribe to:
Post Comments (Atom)
0 Response to Difficulty in stata codes
Post a Comment