Learn R Programming

KSPM (version 0.2.1)

logLik.kspm: Log Likelihood of a kspm Object

Description

Returns the Log Likelihood value of the kernel semi parametric model represented by obect evaluated at the estimated coefficients.

Usage

# S3 method for kspm
logLik(object, ...)

Arguments

object

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

...

additional optional argument (currently unused).

Value

logLik of kspm fit

Details

The function returns the Log Likelihood computed as follow: \(logLik = -\frac{1}{2} RSS\) where \(RSS\) is the residual sum of squares.

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, extractAIC.kspm, deviance.kspm

Examples

Run this code
# NOT RUN {
x <- 1:15
y <- 3*x + rnorm(15, 0, 2)
fit <- kspm(y, kernel = ~ Kernel(x, kernel.function = "linear"))
logLik(fit)

# }

Run the code above in your browser using DataLab