Suppose a data set has pweights but doesn't use stratification or clustering or whatever. Rob Mowry describes such a situation in this thread:
http://www.statalist.org/forums/foru...-data-in-stata
You can analyze such data either by tacking on a [pw=weightvar] option to each estimation command, or by svysetting the data. For example,
In this case, the results are the same. Other than personal preference, is there a reason for preferring one approach over the other? You do get things like pseudo R^2 if you use the pw= approach, although I sort of wonder if the number is legitimate, given that you are also getting pseudo-likelihoods rather than likelihoods. My own bias is to use the svy: prefix, but I am not sure if there is a good statistical reason for that.
http://www.statalist.org/forums/foru...-data-in-stata
You can analyze such data either by tacking on a [pw=weightvar] option to each estimation command, or by svysetting the data. For example,
Code:
webuse nhanes2f, clear svyset, clear svyset [pw = finalwgt] logit diabetes i.female [pw=finalwgt] svy: logit diabetes i.female
Comment