Description Usage Arguments Details Value Author(s) See Also Examples
Methods for working with candidate model (“cm
”) and candidate model list (“cmList
”) objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | getNthModel(object, index)
getFirstModel(object)
summaryTable(object, index, ...)
## S3 method for class 'cmList'
summary(object, ...)
## S3 method for class 'summary.cmList'
print(x, ...)
## S3 method for class 'cm'
formula(x, ...)
## S3 method for class 'cm'
IC(object)
## S3 method for class 'cm'
summary(object, ...)
## S3 method for class 'summary.cm'
print(x, ...)
|
object |
a list of candidate models of class |
index |
an index into the |
x |
a candidate model of class |
... |
some generic methods such as print and summary can take additional arguments, these are passed in to those methods appropriately. |
Since FindMinIC
returns a potentially large list of candidate models, functions such as getNthModel
, getFirstModel
, summaryTable
and summary
can be used to either return specific models or summarize the list of models. Once a particular candidate model (cm
) has been extracted, functions such as IC
, formula
, and summary
can be used to further understand that particular model.
a cmList is a list containing the following components:
results |
a list of candidate models of class |
data |
the data passed in including any changes made for |
best |
the best candidate model |
modeltype |
the model type provided to the |
a cm object is a candidate model containing the following components:
call |
the call to |
IC |
the |
formula |
the formula of the model fit |
Nicholas Lange, Tom Fletcher, Kristen Zygmunt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(iris)
coly="Sepal.Length"
fixed="Sepal.Width"
candidates=c("Species","-1","Sepal.Width:Species")
results.lm = FindMinIC(coly, candidates, fixed, iris)
print(summary(results.lm))
# best model:
print(summary(getFirstModel(results.lm)))
print(summaryTable(results.lm, 1))
print(summary(results.lm$results[[1]]))
# 4th best model:
print(summary(getNthModel(results.lm, 4)))
print(summary(results.lm$results[[4]]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.