Learn R Programming

KSPM (version 0.2.1)

hypercoef: Extract Model Hyper-parameter

Description

Returns hyper-parameters for a model of class "kspm".

Usage

hypercoef(object, ...)

Arguments

object

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

...

additional optional argument (currently unused).

Value

A list of parameter.

lambda

A vector of penalisation arameters.

kernel

A vector of tunning parameters.

References

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.

See Also

kspm for fitting model.

Examples

Run this code
# 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))
hypercoef(fit)


# }

Run the code above in your browser using DataLab