Compute the least squares means from a prediction grid and estimated coefficients

get_lsmeans(data, xmatrix, pred_grid, Betas, continuous_covar_inds = NULL)

Arguments

data

The raw data from which the estimates were computed

xmatrix

The design matrix from which the prediction grid was constructed

pred_grid

The prediction grid, obtained from get_pred_grid

Betas

The estimated coefficients

continuous_covar_inds

The column indices of xmatrix corresponding to continuous covariates.

Value

A data frame of the least squares means

Author

Daniel Claborne