fit_gee {tern.gee}R Documentation

Fit a GEE Model

Description

Fit a GEE Model

Usage

fit_gee(
  vars = vars_gee(),
  data,
  regression = c("logistic"),
  cor_struct = c("unstructured", "toeplitz", "compound symmetry", "auto-regressive")
)

Arguments

vars

(list)
see vars_gee().

data

(data.frame)
input data.

regression

(string)
choice of regression model.

cor_struct

(string)
assumed correlation structure.

Details

The correlation structure can be:

Value

Object of class tern_gee as well as specific to the kind of regression which was used.

Examples

df <- fev_data
df$AVAL <- as.integer(fev_data$FEV1 > 30)

fit_gee(vars = vars_gee(arm = "ARMCD"), data = df)

fit_gee(vars = vars_gee(arm = "ARMCD"), data = df, cor_struct = "compound symmetry")

[Package tern.gee version 0.1.3 Index]