fitted.kspm {KSPM} | R Documentation |
Returns fitted values for a model of class "kspm".
## S3 method for class 'kspm'
fitted(object, ...)
object |
an object of class "kspm", usually, a result of a call to |
... |
additional optional argument (currently unused). |
The vector of fitted values.
Catherine Schramm, Aurelie Labbe, Celia Greenwood
Liu, D., Lin, X., and Ghosh, D. (2007). Semiparametric regression of multidimensional genetic pathway data: least squares kernel machines and linear mixed models. Biometrics, 63(4), 1079:1088.
kspm for fitting model, residuals.kspm, coef.kspm, nobs.kspm.
x <- 1:15
z <- runif(15, 1, 6)
y <- 3*x + z^2 + rnorm(15, 0, 2)
fit <- kspm(y, linear = ~ x, kernel = ~ Kernel(z,
kernel.function = "polynomial", d = 2, rho = 1, gamma = 0))
fitted(fit)