Description Usage Arguments Details Value Note Author(s) References See Also Examples
plot multiple models stored in nl.fitt
and its child objects, in same graph.
1 |
mlist |
list of object models |
case |
case=1, common x, case=2, different x |
length.out |
length of predictor to be increamented, if not given the original predictor data will be used. |
... |
extra option submit to plot. |
If different methods are used to estimate a model this function can be used to plot them all in same graph. Multiple output of estimates in nlr
package should be stored in a list, then mplot
plot data and predicted values for all methods over the data.
Plot graph.
A more common situation is when case=1 then common x-axis will be considered for all fited objects. That is the case when sommon data used with different method of fitt and once want to compare different methods.
Hossein Riazoshams, May 2014. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/
Rizo ML 2008 Statistical Computing with R The R Series. Chapman & Hall/CRC The R Series.
1 2 3 4 5 6 7 8 9 | datalist<-list(xr=trade.ir[,1],yr=trade.ir[,2])
a1<- nlr(nlrobj5[[18]],data=datalist,
control=nlr.control(trace=TRUE,derivfree = FALSE,tolerance=1e-4,singularCase=1,maxiter = 8000))
a2<- nlr(nlrobj5[[18]],data=datalist,
control=nlr.control(trace=TRUE,method="OLS",
derivfree = FALSE,tolerance=1e-4,maxiter = 4000)) # nelder mead, MM, selfstart
mlist=list(a1,a2)
mplot(mlist)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.