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)
Drop all observations with similar variables, except for the earliest?Dear statalists I have struggled with a problem in STATA 16.0 for a couple of days now, and hope th…
Spost packageI use STATA 13.1 however I cannot find and isntall the spost packages . When I search for these pack…
Adding new vce options to existing command?Dear Statalist, I am currently working on a project that incorporates Regression Discontinuity in T…
xtreg by groupI have a pooled panel data. The model is Yi,t+j=aj*Xi,t +bi,t (fixed effect) +... To make it simple,…
Problem in generating simple mean and graphDear all, It might be a silly a question but I've a simple problem in generating a mean variable. I…
Subscribe to:
Post Comments (Atom)
0 Response to Help: weights not allowed r(101)
Post a Comment