makemodels: makemodels - makes a list of models with their labels

Description Usage Arguments Value Examples

View source: R/cpuefuncs.r

Description

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

1
makemodels(labelModel, dependent = "LnCE")

Arguments

labelModel

is the set of variables from the data.frame that are to be included as sequentially added models. Thus is 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

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

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