Learn R Programming

survstan (version 0.0.7.1)

vcov.survstan: Variance-covariance matrix

Description

This function extracts and returns the variance-covariance matrix associated with the regression coefficients when the maximum likelihood estimation approach is used in the model fitting.

Usage

# S3 method for survstan
vcov(object, all = FALSE, ...)

Value

the variance-covariance matrix associated with the parameters estimators.

Arguments

object

an object of the class survstan.

all

logical; if FALSE (default), only covariance matrix associated with regression coefficients is returned; if TRUE, the full covariance matrix is returned.

...

further arguments passed to or from other methods.

Examples

Run this code
# \donttest{
library(survstan)
fit <- aftreg(Surv(futime, fustat) ~ ecog.ps + rx, data = ovarian, baseline = "weibull", init = 0)
vcov(fit)
# }

Run the code above in your browser using DataLab