Skip to content
Prev 25313 / 398502 Next

analysis of data with observation weights

On Thu, 14 Nov 2002, John Fox wrote:

            
The weights argument to lm and glm will give the right point estimates.
The standard errors  will potentially be wrong.  This can be fixed with
`sandwich' standard errors, so one option is to use gee() with each
observation being in a `group' on its own. Similarly, the `robust'
standard errors in coxph() will allow probability-weighted survival
analyses.

The sandwich standard errors used by gee() are not quite the same as the
ones used by survey samplers, but they are very similar and they are
consistent estimates of the same thing.

The usual linear model standard errors are often pretty good even for
probability weighting as long as  important covariates aren't strongly
associated with the weights.


	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._