Unlimited learning, half price | 50% off
Get 50% off unlimited learning

nlr (version 0.1-3)

plotlist: plot a list of objects.

Description

Plot each item of objects stored in a list. This is not extention of list object, just to help plot many objects stored in a list. Typically nlr fited objects such as nl.fitt, nl.fitt.gn, nl.fitt.rob, nl.fitt.rgn has plot method and the result of many model fitts can be stored in a list, then plotlist function plot all of them.

Usage

plotlist(listobj,...)

Arguments

listobj

An nl.fitt, nl.fitt.gn, nl.fitt.rob, nl.fitt.rgn obejct after a nonlinear model fitted before.

...

An ..., argument passe to plot function.

Value

Plot of objects.

Details

plot items in a least one by one.

References

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

See Also

nl.fitt, nl.fitt.gn, nl.fitt.rob, nl.fitt.rgn

Examples

Run this code
# NOT RUN {
nn<-length(nlrobj1)
d<-list(xr=nlr::Weights$Date, yr=nlr::Weights$Weight)
wmodel.nlrob <-list( NULL)
j<-1
for(i in 1:3){

  start<-as.list(nlrobj1[[i]]$par)
  #wmodel.nlrob[i] <-list( nlmest(nlrobj1[[i]],data=d,start=start,robfunc=nl.robfuncs[[1]]))
  a1 <- nlr(nlrobj1[[i]],data=d,robustform = "hampel")
  if (! is.Fault(a1)){
    wmodel.nlrob[j]<-a1
    j<-j+1
  }
}
plotlist(wmodel.nlrob)
# }

Run the code above in your browser using DataLab