getfact: getfact extracts parameter estimates for a given factor from...

Description Usage Arguments Value

View source: R/cpuefuncs.r

Description

getfact extracts the parameter estimates for a given factor from a CEout object. It does this by searching to rownames of the output parameters of the optimum model. It also checks for interaction terms, which for categorical factors is the same as determining a trend of the two factors relative to each other. e.g. for Zone:Month the outcome is the monthly trend for each zone.

Usage

1
getfact(inmat, invar)

Arguments

inmat

generally this will be a CEout object but it can be a matrix of coefficients, an lm object, or a gam object

invar

the model variable whose parameters are wanted

Value

a matrix containing the parameters for invar


haddonm/r4cpue documentation built on May 11, 2020, 1:31 a.m.