dsurvreg(survival)
dsurvreg()所属R语言包:survival
Distributions available in survreg.
分布在survreg可用。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Density, cumulative probability, and quantiles for the set of distributions supported by the survreg function.
密度,累积概率,并位数survreg函数支持的发行集。
用法----------Usage----------
dsurvreg(x, mean, scale=1, distribution='weibull', parms)
psurvreg(q, mean, scale=1, distribution='weibull', parms)
qsurvreg(p, mean, scale=1, distribution='weibull', parms)
参数----------Arguments----------
参数:x
vector of quantiles. Missing values (NAs) are allowed.
位数的向量。遗漏值(NAS)是允许的。
参数:q
vector of quantiles. Missing values (NAs) are allowed.
位数的向量。遗漏值(NAS)是允许的。
参数:p
vector of probabilities. Missing values (NAs) are allowed.
概率向量。遗漏值(NAS)是允许的。
参数:mean
vector of means. This is replicated to be the same length as p or q.
手段向量。这是复制到是p或q的长度相同。
参数:scale
vector of (positive) scale factors. This is replicated to be the same length as p or q.
(正)规模因素的向量。这是复制到是p或q的长度相同。
参数:distribution
character string giving the name of the distribution. This must be one of the elements of survreg.distributions
字符串分布的名称。这必须是survreg.distributions的元素之一
参数:parms
optional parameters, if any, of the distribution. For the t-distribution this is the degrees of freedom.
可选参数,如果有的话,分布。这是为t分布的自由度。
Details
详情----------Details----------
Elements of q or p that are missing will cause the corresponding elements of the result to be missing.
元素q或p缺少会导致结果的相应元素会丢失。
The mean and scale values are as they would be for survreg. In particular, if the distribution is one that involves a transformation, then they are the mean and scale of the transformed distribution. For example, the Weibull distribution is fit using the Extreme value distribution along with a log transformation. Letting F(t) = 1 - exp(-(at)^p) be the cumulative distribution of the Weibull, the mean corresponds to -log(a) and the scale to 1/p (Kalbfleish and Prentice, section 2.2.2).
mean和scale值,因为他们将是survreg。特别是,如果分布是一个涉及转型,那么它们转化分布的均值和规模。例如,Weibull分布适合使用日志转换的极值分布。让F(t) = 1 - exp(-(at)^p)威布尔累积分布,平均相当于-log(a)和规模1/p(Kalbfleish和徒弟,第2.2.2节)。
值----------Value----------
density (dsurvreg), probability (psurvreg), quantile (qsurvreg), or for the requested distribution with mean and scale parameters mean and sd.
密度(dsurvreg),概率(psurvreg),分位数(qsurvreg),或均值和尺度参数的要求分布mean和sd。
参考文献----------References----------
The Statistical Analysis of Failure Time Data Wiley, New York.
参见----------See Also----------
survreg, Normal
survreg,Normal
举例----------Examples----------
# List of distributions available[可供分派名单]
names(survreg.distributions)
## Not run: [#无法运行:]
[1] "extreme" "logistic" "gaussian" "weibull" "exponential"
[6] "rayleigh" "loggaussian" "lognormal" "loglogistic" "t"
## End(Not run)[#结束(不运行)]
# Compare results[比较结果]
all.equal(dsurvreg(1:10, 2, 5, dist='lognormal'), dlnorm(1:10, 2, 5))
# Hazard function for a Weibull distribution[风险函数为Weibull分布]
x <- seq(.1, 3, length=30)
haz <- dsurvreg(x, 2, 3)/ (1-psurvreg(x, 2, 3))
## Not run: [#无法运行:]
plot(x, haz, log='xy', ylab="Hazard") #line with slope (1/scale -1)[与坡度线(1/scale -1)]
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|