plot.PSM: Plot for a PSM object

Description Usage Arguments Examples

View source: R/plot.PSM.R

Description

There are two plots: in the first one there are the residuals while the second one shows the observed against fitted values

Usage

1
2
## S3 method for class 'PSM'
plot(object, legend.pos = "topleft", ...)

Arguments

object

an object of class 'PSM'

legend.pos

position of the legend. Can be moved according to points position

...

further arguments passed to the generic 'plot' function

Examples

1
2
3
4
5
6
x <- data.frame(x = rnorm(100))
tx <- rnorm(100)
eps <- rnorm(100)
y <- x[,1] + tx^4 + eps
psm <- PartialSplines(y, x, tx)
plot(psm)

reealpeppe/PSM documentation built on Dec. 22, 2021, 2:06 p.m.