For each arm level, the predicted mean rate is calculated using the fitted model object, with newdata
set to the result of stats::model.frame
, a reconstructed data or the original data, depending on the
object formula (coming from the fit). The confidence interval is derived using the conf_level
parameter.
h_ppmeans(obj, .df_row, arm, conf_level)
h_ppmeans()
returns the estimated means.
(glm.fit
)
fitted model object used to derive the mean rate estimates in each treatment arm.
(data.frame
)
dataset that includes all the variables that are called in .var
and variables
.
(string
)
group variable, for which the covariate adjusted means of multiple groups will be
summarized. Specifically, the first level of arm
variable is taken as the reference group.
(proportion
)
value used to derive the confidence interval for the rate.
summarize_glm_count()
.