
Last chance! 50% off unlimited learning
Sale ends in
Five plots (selectable by which
) are currently available: a plot of residuals against fitted values, a scale Location plot of
# S3 method for kspm
plot(x, which = c(1:3, 5), cook.levels = c(0.5, 1),
id.n = 3, labels.id = names(x$residuals), cex.id = 0.75,
col.id = "blue", ...)
an object of class "kspm", usually, a result of a call to kspm
.
if a subset of the plots is required, specify a subset of the numbers 1:5.
levels of Cook's distance at which to draw contours.
number of points to be labelled in each plot, starting with the most extreme.
vector of labels, from which the labels for extreme points will be chosen. NULL uses names associated to response specified in kspm
.
size of point labels.
color of point labels.
further arguments passed to or from other methods.
Kim, Choongrak, Byeong U. Park, and Woochul Kim. "Influence diagnostics in semiparametric regression models." Statistics and probability letters 60.1 (2002): 49:58.
kspm for fitting the model, summary.kspm for summary
# NOT RUN {
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(fit)
# }
Run the code above in your browser using DataLab