Learn R Programming

multgee (version 1.9.0)

vcov.LORgee: Calculate Variance-Covariance Matrix for a Fitted LORgee Object.

Description

Returns the variance-covariance matrix of the main parameters of a fitted model LORgee object.

Usage

# S3 method for LORgee
vcov(object, method = "robust", ...)

Value

A matrix of the estimated covariances between the parameter estimates in the linear predictor of the GEE model. This should have row and column names corresponding to the parameter names given by the coef method.

Arguments

object

a fitted model LORgee object.

method

character indicating whether the sandwich (robust) covariance matrix (method = "robust") or the model--based (naive) covariance matrix (method = "naive") should be returned.

...

additional argument(s) for methods.

Details

Default is to obtain the estimated sandwich (robust) covariance matrix and method = "naive" obtains the estimated model-based (naive) covariance matrix

Examples

Run this code
fitmod <- ordLORgee(formula = y ~ factor(time) + factor(trt) + factor(baseline),
  data = arthritis, id = id, repeated = time, LORstr = "uniform")
vcov(fitmod, method = "robust")
vcov(fitmod, method = "naive")

Run the code above in your browser using DataLab