Hi! I met a mistake in following command:
egen x2 = group(sex re age educ)
gen wm = sex == 1 & re == 1
egen wminc = mean(incwage) [pw=x2] if wm == 1, by(age)
First two lines worked and the mistake reported at the third line: weights not allowed r(101)
Could you please help me solve it ?
Related Posts with Help: weights not allowed r(101)
Find digit(s) in stringI realize that there have been hundreds of questions about extracting digits or numbers from strings…
Exporting Oster bound estimatesDear all, As a robustness check, I'm computing the Oster bounds on unobservables for a range of out…
Autocorrelation and other assumptions Diff in Diff modelHello, I am working on the following Diff in diff model: ln_sales = b0 + b1*treatment + b2*(treat…
cvlasso: What does the error message mean?Hi! I have multiple imputed datasets and try to variable selection by using the user-written cvlasso…
Interaction term in a quadratic modelMy basic cross-sectional (countrywise) model is based on regress life_exp gdp_pc_ppp sq_gdp_pc_ppp N…
Subscribe to:
Post Comments (Atom)
0 Response to Help: weights not allowed r(101)
Post a Comment