mplot: Multiple Plot

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

plot multiple models stored in nl.fitt and its child objects, in same graph.

Usage

1
  mplot(mlist, case = 1, length.out = NULL, ...)

Arguments

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.

Details

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.

Value

Plot graph.

Note

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.

Author(s)

Hossein Riazoshams, May 2014. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/

References

Rizo ML 2008 Statistical Computing with R The R Series. Chapman & Hall/CRC The R Series.

See Also

nl.fitt

Examples

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)

nlr documentation built on July 31, 2019, 5:09 p.m.

Related to mplot in nlr...