| 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 | 
 (  | 
data | 
 (  | 
regression | 
 (  | 
cor_struct | 
 (  | 
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")
[Package tern.gee version 0.1.4 Index]