Learn R Programming

nlr (version 0.1-3)

plotinitial: Initial Values plot.

Description

Plot the fited curve and data, at a certain point of parameters, a given user parameter value (initial values mostly), or from selfStart slot.

Usage

plotinitial(form, data, start = getInitial(form, data), length.out = 100,...)

Arguments

form

nl.form object of the nonlinear regression model function.

data

List of data set.

start

NULL or list of starting value, include the parameter names.

length.out

Length of the incremented predictor values, to acheive a more smooth curve.

...

extra argument to be passed to plot function, for further developement purposes.

Value

Two dimensional Fitted curve and points.

Details

Plot initial can plot any fited curve at any parameter value. Technically it is implemented to test initial values computing by selfStart slot of nl.form object. But user can insert hi/her own starting value or even the final fited value.

References

Riazoshams H, Midi H, and Ghilagaber G, 2018,. Robust Nonlinear Regression, with Application using R, Joh Wiley and Sons.

Seber, G., A. F. and Wild, C. J. (2003). Nonlinear Regression. New York: John Wiley & Sons, Inc.

See Also

nl.form

Examples

Run this code
# NOT RUN {
## 
## Plot initial values from selfStart of Scaled Exponential Convex for carbon data
##
  crbdt<-list(xr=nlr::carbon$year,yr=nlr::carbon$co2)
  	plotinitial(form = nlrobj5[[8]],data = crbdt)
# }

Run the code above in your browser using DataLab