vcov.sanon: Calculate Variance-Covariance Matrix for a Fitted Model...

Description Usage Arguments Details Value Examples

View source: R/sanon.r

Description

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

Usage

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

Arguments

object

an object of class "sanon", usually, a result of a call to sanon

...

further arguments passed to or from other methods.

Details

This is a generic function.

Value

Coefficients extracted from the model object object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
##### Example 3.1 Randomized Clinical Trial of Chronic Pain #####
data(cpain)
out1 = sanon(response ~ grp(treat, ref="placebo") + strt(center) + strt(diagnosis), data=cpain)
vcov(out1)

##### Example 3.2 Randomized Clinical Trial of Respiratory Disorder #####
data(resp)
P = rbind(rep(0, 4), diag(4), rep(0, 4))
out23 = sanon(cbind(baseline, visit1, visit2, visit3, visit4) ~ grp(treatment, ref="P")
 + strt(center) + strt(sex) + covar(age), data=resp, P=P)
# each four visits
vcov(out23)

sanon documentation built on July 8, 2020, 6:54 p.m.