plot.spm: Semiparametric regression plotting

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

Description

Takes a fitted spm object produced by spm() and plots the component smooth functions that make it up, on the scale of the linear predictor.

Usage

1
2
## S3 method for class 'spm'
plot(x,...)

Arguments

x

a fitted spm object as produced by spm().

...

other graphics parameters described in Appendix B of the SemiPar Users' Manual http://matt-wand.utsacademics.info/SPmanu.pdf

Details

Produces plots with each panel corresponding to a component of the semiparametric regression model.

Value

The function generates plots.

Author(s)

M.P. Wand mwand@uow.edu.au (other contributors listed in SemiPar Users' Manual).

References

Ruppert, D., Wand, M.P. and Carroll, R.J. (2003)
Semiparametric Regression Cambridge University Press.
http://stat.tamu.edu/~carroll/semiregbook/

Ganguli, B. and Wand, M.P. (2005)
SemiPar 1.0 Users' Manual.
http://matt-wand.utsacademics.info/SPmanu.pdf

See Also

spm lines.spm predict.spm summary.spm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(SemiPar)
data(fossil)
attach(fossil)
fit <- spm(strontium.ratio~f(age))
plot(fit)

# Now do several customisations

op <- par(bg="white")
par(bg="honeydew")
plot(fit,ylim=range(strontium.ratio),col="green",
     lwd=5,shade.col="mediumpurple1",rug.col="blue")   
points(age,strontium.ratio,col="orange",pch=16)
par(op)

SemiPar documentation built on May 2, 2019, 5:42 a.m.

Related to plot.spm in SemiPar...