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
How to deal with December/January issues when using mkdir to create directories from system datesHello all, Using Stata 15.1/IC I've been using a do file for the past 8 months or so that automati…
Programming problem - computing ages of children per woman in a longitudinal data using data on births.Hello, I'm looking for help in optimizing my overly convoluted syntax when it comes to the question …
F statistic from logit model with survey dataHi, when performing logistic regression with survey data, is the reported F statistic actually resu…
Summary statistics per cik per yearDear all, I have a sample of panel data which contains data on a main firm: cik, a given year: year…
Which test? Values differ from zero significantly?Dear all, how I can check that the following values differ from zero significantly? 0 = expected v…
Subscribe to:
Post Comments (Atom)
0 Response to Difficulty in stata codes
Post a Comment