powered by
Fit a GEE Model
fit_gee( vars = vars_gee(), data, regression = c("logistic"), cor_struct = c("unstructured", "toeplitz", "compound symmetry", "auto-regressive") )
Object of class tern_gee as well as specific to the kind of regression which was used.
tern_gee
(list) see vars_gee().
list
vars_gee()
(data.frame) input data.
data.frame
(string) choice of regression model.
string
(string) assumed correlation structure.
The correlation structure can be:
unstructured: No constraints are placed on the correlations.
unstructured
toeplitz: Assumes a banded correlation structure, i.e. the correlation between two time points depends on the distance between the time indices.
toeplitz
compound symmetry: Constant correlation between all time points.
compound symmetry
auto-regressive: Auto-regressive order 1 correlation matrix.
auto-regressive
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")
Run the code above in your browser using DataLab