plot.derivatives: Plot derivatives of a kspm object

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

View source: R/plotDerivatives.R

Description

Plot of derivatives for kernel part of a kspm model.

Usage

1
2
3
## S3 method for class 'derivatives'
plot(x, subset = NULL, xlab = NULL,
  ylab = NULL, ...)

Arguments

x

an object of class "derivatives", usually, a result of a call to derivatives.

subset

if a subset of the plots is required, specify the names of the variable for which plot of derivatives is required.

xlab

x label

ylab

y label

...

further arguments passed to or from other methods.

Details

X axis represents the raw data used as input in kernel part of the model. Y axis represents the pointwise derivative values i.e. the derivatives of fitted value according to the variable of interest.

Author(s)

Catherine Schramm, Aurelie Labbe, Celia Greenwood

References

Kim, Choongrak, Byeong U. Park, and Woochul Kim. "Influence diagnostics in semiparametric regression models." Statistics and probability letters 60.1 (2002): 49:58.

See Also

derivatives

Examples

1
2
3
4
5
6
7
x <- 1:15
z1 <- runif(15, 1, 6)
z2 <- rnorm(15, 1, 2)
y <- 3*x + (z1 + z2)^2 + rnorm(15, 0, 2)
fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(~ z1 + z2,
kernel.function = "polynomial", d= 2, rho = 1, gamma = 0))
plot(derivatives(fit))

KSPM documentation built on Aug. 10, 2020, 5:07 p.m.