vcov.WCE: Obtain variance-covariance matrix from WCE models

Description

The vcov method returns the variance-covariance matrix of the estimated regression coefficients from a WCE model.

Usage

1
2
## S3 method for class 'WCE'
vcov(object, ...)

Arguments

object

A WCE object.

...

Optional; other parameters to be passed through to vcov (none currently used).

Value

The function returns variance-covariance matrices with the estimated regression coefficients for the supplied WCE model object. The number of matrices returned is equivalent to the length of the nknots vector (or one matrix, if nknots is a scalar) passed to the WCE function when fitting the model.

Author(s)

Marie-Pierre Sylvestre
marie-pierre.sylvestre@umontreal.ca

References

Sylvestre MP, Abrahamowicz M. Flexible modeling of the cumulative effects of time-dependent exposures on the hazard. Stat Med. 2009 Nov 30;28(27):3437-53.

Examples

1
2
3
4
5
wce <- WCE(drugdata, "Cox", 1, 90, constrained = "R", id = "Id", event = "Event",
		   start = "Start", stop = "Stop", expos = "dose", 
		   covariates = c("age", "sex"))

vcov(wce) 

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.