summary.list.multiFit: A comparison of the results produced by 'fitTable' or...

Description Usage Arguments Details Value See Also Examples

Description

Take the output of fitTable or multiFit, extract a specific metric from the fits, and present them in the form of a table.

Usage

1
2
## S3 method for class 'list.multiFit'
summary(object, metric = "rss", ...)

Arguments

object

[list.multiFit] The output of fitTable or multiFit.

metric

[character] The metric to extract from object. Available metrics are: "aic", "bic", "rss", and "sigma". Defaults to "rss".

...

Unused; only for consistency with summary.

Details

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.

Value

A more human-friendly digest.

See Also

multiFit

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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")

soundcorrs documentation built on Nov. 16, 2020, 5:09 p.m.