fit_gee: Fit a GEE Model

View source: R/fit_gee.R

fit_geeR 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:

  • unstructured: No constraints are placed on the correlations.

  • toeplitz: Assumes a banded correlation structure, i.e. the correlation between two time points depends on the distance between the time indices.

  • ⁠compound symmetry⁠: Constant correlation between all time points.

  • auto-regressive: Auto-regressive order 1 correlation matrix.

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")

tern.gee documentation built on Sept. 11, 2024, 8:11 p.m.