sample weights in women file [message #19131] |
Thu, 23 April 2020 12:48 |
Laxmi Sharma
Messages: 3 Registered: November 2019
|
Member |
|
|
Hello,
I am trying to find out effect of education on mensuration hygienic methods and I am using district fixed effect .
When I am using sample weights in fixed effect model ,
gen wgt =sample_weights/1000000
gen id = state*1000 +distt
xtset id
xtreg san_nap own_edu hsbnd_edu i.wealth_index i.cast_trib i.religion i.place_type i.grouped_age [pw=wgt] ,fe cluster(id)
I am getting error weight must be constant within id.
I do not understand why ??
Thanks
|
|
|