getfact: getfact extracts parameter estimates for a given factor

View source: R/cpuefuncs.r

getfactR Documentation

getfact extracts parameter estimates for a given factor

Description

getfact extracts the parameter estimates for a given factor from either a matrix, an array, an outce object (from standLM), or an lm object or a gam object. It does this by searching the 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

getfact(inmat, invar, biascorrect = TRUE)

Arguments

inmat

this can be an outce object from standLM, but it can also be a matrix of coefficients, an lm object, or a gam object

invar

the model variable whose parameters are wanted, eg "month"

biascorrect

when back transforming the coefficients should we use the log-normal bias-correction or not. default=TRUE

Value

a matrix containing the parameters for invar


haddonm/rforcpue documentation built on Oct. 12, 2024, 11:55 p.m.