fit_gee | R Documentation |
Fit a GEE Model
fit_gee(
vars = vars_gee(),
data,
regression = c("logistic"),
cor_struct = c("unstructured", "toeplitz", "compound symmetry", "auto-regressive")
)
vars |
( |
data |
( |
regression |
( |
cor_struct |
( |
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.
Object of class tern_gee
as well as specific to the kind of regression
which was used.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.