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)
Question about svy: meanHello, this question is conceptual as much as anything else: when I run svy: mean var1 var2 var3, th…
reshape of nested dataDear all, I tried to reshape the following nested data into long-year wide-series: Code: * Exampl…
Stata Regression Help Using Fixed Effects and Cluster of Standard ErrorsHi all, I am looking to create a regression to determine the relationship between large increases i…
Trouble adding statistic to esttab latex tableHello all. I am trying to add additional statistics to a latex table using the user-written command …
Citing a methodological strategy found in a Statalist thread?Dear Statalist users, A few months ago I came across a discussion of a methodological strategy in o…
Subscribe to:
Post Comments (Atom)
0 Response to Help: weights not allowed r(101)
Post a Comment