summary.list.multiFit | R Documentation |
fitTable
or multiFit
.Take the output of fitTable
or multiFit
, extract a specific metric from the fits, and present them in the form of a table.
## S3 method for class 'list.multiFit' summary(object, metric = "rss", ...)
object |
[list.multiFit] The output of |
metric |
[character] The metric to extract from |
... |
Unused; only for consistency with |
The output of multiFit
may be difficult to digest for a human. This function selects from it only the results that are of particular interest, and presents them in an easy to read form.
A more human-friendly digest.
multiFit
set.seed (27) dataset <- data.frame (X=1:10, Y=(1:10)^2+runif(10,-10,10)) models <- list ( "model A" = list ( formula = "Y ~ X^a", start = list (list(a=100), list(a=1))), "model B" = list ( formula = "Y ~ a*(X+b)", start = list (list(a=1,b=1))) ) summary (multiFit(models,dataset)) summary (fitTable(models,as.matrix(dataset),1,vec2df.rank), "sigma")