测试铰链模型和线性模型。
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