Learn R Programming

survey (version 2.4)

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,subset=NULL, ...)

Arguments

formula
Model formula. Any cluster() terms will be ignored.
design
survey.design object. Must contain all variables in the formula
subset
Expression to select a subpopulation
...
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.

Note that strata terms in the model formula describe subsets that have a separate baseline hazard function and need not have anything to do with the stratification of the sampling.

See Also

svydesign, coxph, svyCprod