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
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
Comment