Learn R Programming

nlstools (version 1.0-2)

confint2: Confidence intervals in nonlinear regression

Description

Produces confidence intervals for the parameters in nonlinear regression model fit. The intervals can either be based large sample results or on profiling.

Usage

confint2(object, parm, level = 0.95, method = c("asymptotic", "profile"), ...)

Arguments

object

object of class nls.

parm

a vector character strings with names of the parameter for which to calculate confidence intervals (by default all parameters).

level

the confidence level required.

method

method to be used: "asympotic" for large sample and "profile" for profiling approach.

additional argument(s) to pass on the method doing the profiling.

Value

A matrix with columns giving lower and upper confidence limits for each parameter.

Details

The profiling used is the method confint.nls.

Examples

Run this code
# NOT RUN {
L.minor.m1 <- nls(rate ~ Vm*conc/(K+conc), data = L.minor, start = list(K=20, Vm=120))

confint2(L.minor.m1)

confint2(L.minor.m1, "K")

# }

Run the code above in your browser using DataLab