Learn R Programming

nlsr (version 2021.8.19)

predict.nlsr: Predictions for models specified as a formula of style y ~ (something)

Description

Function to allow predictions from nonlinear models estimated with nlxb from package nlsr if the model is specified by a formula with the structure y ~ (something).

Usage

## S3 method for class 'nlsr'
 # S3 method for nlsr
predict(object, newdata,...)

Value

Returns the predictions.

Arguments

object

The output object of executing nlxb to estimate the model. An object of class 'nlsr'.

newdata

A named list containing the new data. This should be derived from a data frame of the same structure as the data used to estimate the model.

...

Any data needed for the function. We do not know of any! This is NOT currently used.

Author

John C Nash <nashjc@uottawa.ca>

Details

To be added.

See Also

Function nls().

Examples

Run this code

cat("See examples in nlsr-package.Rd and in vignettes.\n")

Run the code above in your browser using DataLab