ls_design {rbmi}R Documentation

Calculate design vector for the lsmeans

Description

Calculates the design vector as required to generate the lsmean and standard error. ls_design_equal calculates it by applying an equal weight per covariate combination whilst ls_design_proportional applies weighting proportional to the frequency in which the covariate combination occurred in the actual dataset.

Usage

ls_design_equal(data, frm, covars, fix)

ls_design_proportional(data, frm, covars, fix)

Arguments

data

A data.frame

frm

Formula used to fit the original model

covars

a character vector of variables names that exist in data which should be extracted (ls_design_equal only)

fix

A named list of variables with fixed values


[Package rbmi version 1.2.6 Index]