Build the prediction grid to compute least squares means.
get_pred_grid(
group_df,
main_effect_names,
covariate_names = NULL,
fspec = as.formula("~.")
)
A dataframe with the reserved 'Group' column, and columns for main effects and covariates.
Character vector with the column names of the main effects in group_df.
Character vector with the column names of the covariates in group_df.
A formula specification to be passed to model.matrix
to construct the prediction grid in model matrix form.
A matrix of the prediction grid