找回密码
 注册
查看: 1227|回复: 0

R语言 VGAM包 Tobit()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-10-1 15:54:47 | 显示全部楼层 |阅读模式
Tobit(VGAM)
Tobit()所属R语言包:VGAM

                                        The Tobit Distribution
                                         托比分布

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Density, distribution function, quantile function and random generation for the Tobit model.
密度,分布函数,分位数函数和随机生成的Tobit模型。


用法----------Usage----------


dtobit(x, mean = 0, sd = 1, Lower = 0, Upper = Inf, log = FALSE)
ptobit(q, mean = 0, sd = 1, Lower = 0, Upper = Inf,
       lower.tail = TRUE, log.p = FALSE)
qtobit(p, mean = 0, sd = 1, Lower = 0, Upper = Inf)
rtobit(n, mean = 0, sd = 1, Lower = 0, Upper = Inf)



参数----------Arguments----------

参数:x, q
vector of quantiles.
向量的位数。


参数:p
vector of probabilities.
向量的概率。


参数:n
number of observations. If length(n) > 1 then the length is taken to be the number required.  
若干意见。如果length(n) > 1的长度是所需的数量。


参数:Lower, Upper
vector of lower and upper thresholds.   
下限和上限阈值的矢量。


参数:mean, sd, lower.tail, log, log.p
see rnorm.  
看到rnorm。


Details

详细信息----------Details----------

See tobit, the VGAM family function for estimating the parameters,  for details. Note that the density at Lower and Upper is the value of dnorm evaluated there plus the area to the left/right of that point too. Thus there are two spikes; see the example below.
tobit,的VGAM的家庭功能的参数估计的详细信息,。需要注意的是密度Lower和Upper的价值是dnorm有加的面积计算左/右的那点。因此,有两种尖峰,见下面的例子。


值----------Value----------

dtobit gives the density, ptobit gives the distribution function, qtobit gives the quantile function, and rtobit generates random deviates.
dtobit给出了密度,ptobit给出了分布函数,qtobit给出了分位数的功能,和rtobit随机产生的偏离。


(作者)----------Author(s)----------


T. W. Yee



参见----------See Also----------

tobit.
tobit。


实例----------Examples----------


## Not run:  m = 0.5; x = seq(-2, 4, len = 501)[#不执行:M = 0.5,X = SEQ(-2,4,LEN = 501)]
Lower = -1; Upper = 2.5
plot(x, ptobit(x, m = m, Lower = Lower, Upper = Upper),
     type = "l", ylim = 0:1, las = 1, col = "orange",
     ylab = paste("ptobit(m = ", m, ", sd = 1, Lower =", Lower,
                  ", Upper =", Upper, ")"),
     main = "Orange is cumulative distribution function; blue is density",
     sub = "Purple lines are the 10,20,...,90 percentiles")
abline(h = 0)
lines(x, dtobit(x, m = m, Lower = Lower, Upper = Upper), col = "blue")

probs = seq(0.1, 0.9, by = 0.1)
Q = qtobit(probs, m = m, Lower = Lower, Upper = Upper)
lines(Q, ptobit(Q, m = m, Lower = Lower, Upper = Upper),
      col = "purple", lty = "dashed", type = "h")
lines(Q, dtobit(Q, m = m, Lower = Lower, Upper = Upper),
      col = "darkgreen", lty = "dashed", type = "h")
abline(h = probs, col = "purple", lty = "dashed")
max(abs(ptobit(Q, m = m, Lower = Lower, Upper = Upper) - probs)) # Should be 0[应为0]

endpts = c(Lower, Upper) # Endpoints have a spike[端点有一个扣球]
lines(endpts, dtobit(endpts, m = m, Lower = Lower, Upper = Upper),
      col = "blue", lwd = 2, type = "h")

## End(Not run)[#(不执行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-26 11:28 , Processed in 0.020966 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表