calculateAIC: Calculates the Akaike Information Criteria (AIC)

Description Usage Arguments Details Value See Also Examples

View source: R/calculateAIC.R

Description

Calculates the AIC for each of the computed models. Requires that modelTurnover is run with reuturnModel = TRUE.

Usage

1
calculateAIC(modelList, smallSampleSize = TRUE)

Arguments

modelList

a list with the model metrics, the output from modelTurnover.

smallSampleSize

a logical indicating if the AIC small sample size correction formula should be used.

Details

The following formulas are used to compute the AIC and AICc (small sample size correction):

Value

a list with the model metrics (the given input) plus a matrix named "AIC" with the AIC for each value

See Also

compareAIC, modelTurnover

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data('wormsPE')
wormsPE <- calculateIsotopeFraction(wormsPE, ratioAssay = 'ratio')

modelList <- modelTurnover(x = wormsPE[1:10],
                           assayName = 'fraction',
                           formula = 'fraction ~ 1 - exp(-k*t)',
                           start = list(k = 0.02),
                           mode = 'protein',
                           robust = FALSE,
                           returnModel = TRUE)

modelList <- calculateAIC(modelList, smallSampleSize = TRUE)

pulsedSilac documentation built on Nov. 8, 2020, 5:13 p.m.