The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Merging data files » sample weights in women file (weights must be constant within id)
sample weights in women file [message #19131] Thu, 23 April 2020 12:48 Go to previous message
Laxmi Sharma is currently offline  Laxmi Sharma
Messages: 3
Registered: November 2019

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

Read Message
Read Message
Previous Topic: STATA codes to merge women and household datasets
Next Topic: Apply weight to merge data file
Goto Forum:

Current Time: Fri Sep 25 18:02:12 Eastern Daylight Time 2020