Learn R Programming

pmartR (version 2.4.6)

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

Description

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

Usage

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

Value

A data frame of the least squares means

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.

Author

Daniel Claborne