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)
Default option for marginsHello, i am using the margins command to predict the effect of some variables, this is my regression…
Creating Dummy Variables from List of Drug NamesI have a list of over 500 drug names, and I'm trying to write a loop to create a dummy variable for …
Creation of count variables that relate to a period of timeHey everybody, I am Till from Germany and new with Stata and using it for my master thesis. Current…
Generate Leads and LagsI would like to create leads and lags to control for the last two years before a pollical leader cam…
Loops: Creating Dummy Variables from List of Drug NamesI have a list of over 500 drug names, and I'm trying to write a loop to create a dummy variable for …
Subscribe to:
Post Comments (Atom)
0 Response to Help: weights not allowed r(101)
Post a Comment