
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.
plotlist(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.
Plot of objects.
plot items in a least one by one.
Riazoshams H, Midi H, and Ghilagaber G, 2018,. Robust Nonlinear Regression, with Application using R, Joh Wiley and Sons.
# 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