gee_var_select: Small wrapper function of the geesmv package

Description Usage Arguments Details Value Author(s) Examples

View source: R/gee.R

Description

Small wrapper function of the geesmv package

Usage

1
gee_var_select(formula, idvar, data, varianceEstimator = NULL)

Arguments

formula

The formula of the analysis

idvar

The id cluster variable

data

The data set

varianceEstimator

Choose one of the following list:

FayGrauband2001
GoshoSatoTakeuchi2014
KauermannCarroll2001
MorelBokossaNeerchal2003
ManclDeRouen2001
Mackinnon1985
Pan2001
WangLong2011

##'

Details

Small wrapper function of the geesmv package

Value

type

Which sandwich variance estimator was chosen?

df.residual

Degree of freedom of the residuals

beta

Effect of the treatments

vbeta

Variance/Covariance matrix of beta

Author(s)

Jochen Kruppa

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
require(multcomp)
geeFit <- gee_var_select(formula = "resp ~ 0 + treat",
                         idvar = "litter",
                         data = litterGeeDf,
                         varianceEstimator = "WangLong2011")

summary(geeFit)

contrMat_n <- setNames(rep(1, length(names(geeFit$beta))),
                       names(geeFit$beta))

ggGee <- glht(parm(coef = geeFit$beta, vcov = geeFit$vbeta), 
              linfct = contrMat(contrMat_n, type = "Dunnett"))
ggGee$df <- geeFit$df.residual

summary(ggGee)
confint(ggGee)

jkruppa/geeTools documentation built on May 19, 2019, 12:45 p.m.