ch.ICfromRSS | R Documentation |
This function calculates the AIC and BIC from a residual sum of squares. The residual sum of squares, the number of data points, as well as the number of free parameters are input. ICtype specifies whether to output the AIC or BIC.
ch.ICfromRSS(rss, n, numParameters, ICtype = "BIC")
rss |
The residual sum of squares from a model fit. |
n |
The number of observation from which the rss was calculated. |
numParameters |
The number of free parameters. |
ICtype |
A string specifying whether to return the AIC or BIC. Valid inputs are: "AIC" & "BIC". DEFAULT = "BIC" ' |
the AIC or BIC.
ch.ICfromRSS (myRss, 40, 5, ICtype = "BIC")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.