Description Usage Arguments Details Author(s) References See Also Examples
View source: R/plotDerivatives.R
Plot of derivatives for kernel part of a kspm model.
1 2 3 |
x |
an object of class "derivatives", usually, a result of a call to |
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. |
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.
Catherine Schramm, Aurelie Labbe, Celia Greenwood
Kim, Choongrak, Byeong U. Park, and Woochul Kim. "Influence diagnostics in semiparametric regression models." Statistics and probability letters 60.1 (2002): 49:58.
derivatives
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.