R语言chngpt包 hinge.test函数使用说明

返回R语言chngpt包函数列表


功能\作用概述:

测试铰链模型和线性模型。


语法\用法:

hinge.test(formula, cov.interest, family = c("binomial", "gaussian"), data, thres = NA,
lb.quantile = 0.1, ub.quantile = 0.9, chngpts.cnt = 10, method = c("FDB", "B", "DB"),
boot.B = 10000, B2 = NA, verbose = FALSE)


参数说明:

formula :

cov.interest :

family :

data :

thres : 如果提供,这将是在铰链模型中使用的阈值。

lb.quantile : 分位数中候选阈值的下界

ub.quantile : 分位数中候选阈值的上界

chngpts.cnt : 候选阈值数

method : 试验类型。FDB:假双引导,B:参数引导,DB:双引导。

boot.B : B和FDB的参数化引导复制数

B2 : 数据库的内部引导复制数

verbose :


示例\实例:


dat=sim.hinge(threshold.type = 'NA',family = 'binomial',thres='NA',X.ditr = 'norm',mu.X = c(0,0,0),
coef.X = c(0,.5,.5,.4),cov.X = diag(3),eps.sd = 1,seed = 1,n=100)
test=hinge.test(Y~X1+X2, "x", family="binomial", data=dat,'method'='FDB',boot.B=10)
test