tidy.nlsList: Tidy method for nlsList

Description Usage Arguments Examples

Description

Adds a method to tidy (broom package), so that we can use it for models fitted with nlsList.

Usage

1
2
3
## S3 method for class 'nlsList'
tidy(x, conf.int = FALSE, conf.level = 0.95,
  quick = FALSE, ...)

Arguments

x

An object returned by nlsList

conf.int

Whether to calculate confidence intervals

conf.level

The level of the confidence interval

quick

If TRUE, only returns the coefficients.

...

Further arguments passed to tidy

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
chick <- as.data.frame(ChickWeight)

# Fit an nlsList model, with a grouping variable (Diet)
fit1 <- nlsList(weight ~ a*Time^b | Diet, data=chick, start=list(a=10, b=1.1))

# Collect coefficients
tidy(fit1)

# ... and confidence intervals
tidy(fit1, conf.int=TRUE)

RemkoDuursma/nlshelper documentation built on May 9, 2019, 9:39 a.m.