krm.score.test {krm}R Documentation

Adjusted Score Test

Description

Adjusted score test for kernel-based regression models. This function is typically not used directly, but is called within krm.most().

Usage

krm.score.test(formula, data, K, regression.type=c("logistic","linear"), verbose=FALSE)

Arguments

formula

a formula object. Model under null.

data

a data frame

K

a n by n kernel/correlation matrix

regression.type

a string

verbose

Boolean

Examples


dat=sim.liu.2008(n=100, a=0, seed=1)
z=as.matrix(subset(dat, select=c(z.1,z.2,z.3,z.4,z.5)))
rho=1
K=kyotil::getK(z,kernel="rbf",para=rho^-2)
krm.score.test (y~x, dat, K, regression.type="logistic") 



[Package krm version 2022.10-17 Index]