powered by
Extract Least Square Means from a GEE Model
lsmeans( object, conf_level = 0.95, weights = "proportional", specs = object$vars$arm, ... )# S3 method for tern_gee_logistic lsmeans( object, conf_level = 0.95, weights = "proportional", specs = object$vars$arm, ... )
# S3 method for tern_gee_logistic lsmeans( object, conf_level = 0.95, weights = "proportional", specs = object$vars$arm, ... )
A data.frame with least-square means and contrasts. Additional classes allow to dispatch downstream methods correctly, too.
data.frame
(tern_gee) result of fit_gee().
tern_gee
fit_gee()
(proportion) confidence level
proportion
(string) type of weights to be used for the least square means, see emmeans::emmeans() for details.
string
emmeans::emmeans()
(string or formula) specifications passed to emmeans::emmeans()
formula
additional arguments for methods
df <- fev_data df$AVAL <- rbinom(n = nrow(df), size = 1, prob = 0.5) fit <- fit_gee(vars = vars_gee(arm = "ARMCD"), data = df) lsmeans(fit) lsmeans(fit, conf_level = 0.90, weights = "equal")
Run the code above in your browser using DataLab