makemodels: makemodels makes a list of models as formula with their...

View source: R/cpuefuncs.r

makemodelsR Documentation

makemodels makes a list of models as formula with their labels

Description

makemodels makes a list of models with their labels from an input vector of names. Can be used to prepare the input models ready for standLM.

Usage

makemodels(labelModel, dependent = "LnCE")

Arguments

labelModel

is the set of variables from the input data.frame that are to be included as sequentially added models. Thus if labelModel is set equal to c('Year',"Vessel') the first model will be LnCE ~ Year and the second will be LnCE ~ Year + Vessel. labelModel will also provide the headings to the tables in the output list from standLnCE

dependent

the name of the dependent variable in your dataset; defaults to 'LnCE'

Value

a list of formula representing the set of models to be fitted along with the labels for each model

Examples

 labelM <- c("Year","Vessel","Month")
 makemodels(labelM)

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