mvoGEE: Unweighted GEE for multiple correlated binary outcomes in...

View source: R/mvoGEE.R

mvoGEER Documentation

Unweighted GEE for multiple correlated binary outcomes in cross-sectional data with informative cluster size.

Description

Solves the generalized estimating equations for correlated binary responses in clustered data assuming using the method of quasi-least squares.

Usage

mvoGEE(formula, data, cluster, resp.ind, unit, corr.str, common.slope = NULL)

Arguments

formula

a formula expression as for other regression models.

data

an optional data frame containing the variables provided in formula, id, cluster.var and time.var.

cluster

a vector that identifies the clusters.

resp.ind

a vector that indicates the responses.

unit

a vector that identifies the unit within a cluster.

corr.str

a character string that indicates the working correlation structure among the correlated responses. Options include "ind" for independence, "unstr" for unstructured, and "exch" for exchangeable.

common.slope

a character string indicating which variables in the model will have a common slope for each of the responses.

Details

The data must be provided in case level or equivalently in ‘long’ format.

Value

Returns an object of the class "cwgee". This has components:

call

the matched call.

coefficients

the estimated regression parameter vector of the marginal model.

coef.names

the variable name of the coefficients.

robust.variance

the estimated "robust" covariance matrix.

robust.se

the estimated "robust" standard errors.

wald.chisq

the Wald Chi-square test statistic for coefficient estimates.

p.value

the p-value based on a Wald Chi-square test statistic that no covariates are statistically significant.

corr.matrix

the estimated correlation matrix.

niter

the number of iterations the model took to converge.

corr.str

the working correlation structure assumed for the model.

Author(s)

Aya Mitani

Examples

data(perio_base)
fitmod <- mvoGEE(formula = y ~ smoking + age + edu, data = perio_base,
cluster = subject, resp.ind = outcome, unit = tooth,
common.slope = c("smoking", "edu"), corr.str = "exch")
summary(fitmod)

AyaMitani/CWGEE documentation built on July 30, 2023, 10:55 a.m.