Please disregard this question. I’ve figured it out. However, I would be interested in seeing model code for applying sample weights in Stata. Currently, I am using the following code. I have recoded the variable educd into a set of indicators.
svyset serial [pweight = perwt]
svy linearized : mean ed_lths ed_hs ed_AA ed_BA, over(year)
The problem is that when I use a recoded dummy variable that uses only one value of the original variable, e.g. ed_BA where ed_BA includes only educd==101, the command does not generate results. I think this has to do with the person weights because I can get a result when they are not being used.
I don’t understand why the weights cause this to occur. I wonder whether the procedure I am following is incorrect. I am calculating these statistics for a single county.