SPCCUSUMlogreg-class(spcadjust)
SPCCUSUMlogreg-class()所属R语言包:spcadjust
Class "SPCCUSUMlogreg"
类“SPCCUSUMlogreg”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Risk-adjusted CUSUM chart for binary responses based on a logistic regression model.
风险调整后的CUSUM图logistic回归模型的基础上的二进制响应。
类对象----------Objects from the Class----------
Objects can be created by calls of the form new("SPCCUSUMlogreg", ...).
可以创建对象通过调用的形式new("SPCCUSUMlogreg", ...)。
插槽----------Slots----------
Delta: Object of class "numeric"
Delta:对象类"numeric"的
formula: Object of class "character"
formula:对象类"character"的
扩展----------Extends----------
Class "SPCCUSUMNonpar", directly. Class "SPCCUSUM", by class "SPCCUSUMNonpar", distance 2. Class "SPCchart", by class "SPCCUSUMNonpar", distance 3.
类"SPCCUSUMNonpar",直接。类"SPCCUSUM",类的“SPCCUSUMNonpar”,距离2。类"SPCchart",类的“SPCCUSUMNonpar”,距离3。
方法----------Methods----------
updates signature(chart = "SPCCUSUMlogreg"): ...
更新signature(chart = "SPCCUSUMlogreg"):...
xiofP signature(chart = "SPCCUSUMlogreg"): ...
xiofP signature(chart = "SPCCUSUMlogreg")...
(作者)----------Author(s)----------
Axel Gandy
实例----------Examples----------
n <- 1000
Xlogreg <- data.frame(x1=rbinom(n,1,0.4), x2=runif(n,0,1), x3=rnorm(n))
xbeta <- -1+Xlogreg$x1*100+Xlogreg$x2+Xlogreg$x3
Xlogreg$y <- rbinom(n,1,exp(xbeta)/(1+exp(xbeta)))
chartlogreg <- new("SPCCUSUMlogreg",Delta= 1, formula="y~x1+x2+x3")
SPCproperty(data=Xlogreg,
nrep=10,
property=new("calARLCUSUM",chart=chartlogreg,target=100))
#increase nrep for real applications.[实际应用中增加NREP。]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|