Learn R Programming

survey (version 1.0)

svycoxph: Survey-weighted generalised linear models.

Description

Fit a generalised linear model to data from a complex survey design, with inverse-probability weighting and with standard errors corrected for cluster sampling.

Usage

svycoxph(formula, design, ...)

Arguments

formula
Model formula. Any cluster() terms will be ignored.
design
survey.design object. Must contain all variables in the formula
...
Other arguments passed to coxph.

Value

  • An object of class svycoxph.

Details

The main difference between this function and coxph in the survival package is that this function accounts for the reduction in variance from stratified sampling and the increase in variance from having only a small number of clusters.

See Also

svydesign, coxph, svyCprod