devRateModelAll {devRate}R Documentation

Fitting all models listed in devRateEqList to a development rate dataset

Description

This function fits all models listed in devRateEqList to a development rate dataset and then calculates a series of indices of goodness-of-fit for each fitted model.

Usage

devRateModelAll(
  dfData,
  eqList = devRate::devRateEqList,
  eqStartVal = devRate::devRateEqStartVal,
  propThresh = 0.01,
  interval = c(0, 50),
  ...
)

Arguments

dfData

A data.frame with the temperature in the first column and the development rate in the second column.

eqList

A list of models that can be retrieved from the object devRateEqList. The default value is the object devRateEqList.

eqStartVal

A list of sarting values for each model. The default value is the object devRateEqStartVal.

propThresh

The proportion of maximal development rate used as a threshold for estimating XTmin and XTmax for asymptotic equations (default value is 0.01)

interval

A vector containing the lower and upper boundaries of the interval of temperatures in which metrics are searched.

...

Additional arguments for the devRateModel function.

Details

Equations stinner_74 and lamb_92 are fitted and the resulting nls objects are showed in the first element of the returned list, however indices of goodness-of-fit are not provided. Equation campbell_74 is not fitted ( simple linear model).

Value

An object of class list with two elements. The first element is a list with all the nls objects. The second element is a data.frame. In the data.frame, the first column corresponds to model names and the second column to the number of parameters. The columns 3 to 6 correspond to the results of the function devRateQlStat, i.e. RSS, RMSE, AIC, and BIC. The columns 7 to 11 correspond to the results of the function devRateQlBio, i.e. CTmin, CTmax, Topt, XTmin, and XTmax.

Examples

myDf <- exTropicalMoth$raw$egg
devRateModelAll(dfData = myDf)

[Package devRate version 0.2.4 Index]