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)
Syntax for calculating period prevalence (disease epidemiology)I am working with a large longitudinal data set consisting of anonymous individuals with diabetes be…
chi2 testGood morning to everybody, I 've a dubt Question1 MALE FEMALE OTHER TOT 1 64 119 7 190 2 28 9…
Identifying Missing Data for All Years in Panel DataMy data is panel data and I am trying to list/identify Tickers that has missing values for ChangeSal…
Merging Two Datasets on a Common Variable Throwing ErrorMy data is panel data and I am trying to merge these two data sets on common variable "Ticker" and I…
rolling + averageHello.. I have a difficulty in calculating with stata the following formula. yt= bo + xt with rolli…
Subscribe to:
Post Comments (Atom)
0 Response to Help: weights not allowed r(101)
Post a Comment