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

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

[复制链接]
发表于 2012-9-30 11:18:11 | 显示全部楼层 |阅读模式
dsn(sn)
dsn()所属R语言包:sn

                                         Skew-Normal Distribution
                                         歪斜正态分布

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

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

Density function, distribution function, quantiles and random number generation for the skew-normal (SN) distribution.
密度函数,分布函数,分位数和为正常(SN)的歪斜分布的随机数生成。


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


dsn(x, location = 0, scale = 1, shape = 0, dp = NULL, log = FALSE)
psn(x, location = 0, scale = 1, shape = 0, dp = NULL, engine, ...)
qsn(p, location = 0, scale = 1, shape = 0, dp = NULL, tol = 1e-8, engine, ...)
rsn(n = 1, location = 0, scale = 1, shape = 0, dp = NULL)



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

dsn(x, location=0, scale=1, shape=0, log=FALSE)
dsn(x, dp=, log=FALSE)
psn(x, location=0, scale=1, shape=0, engine, ...)
psn(x, dp=, engine, ...)
qsn(p, location=0, scale=1, shape=0, tol=1e-8, ...)
qsn(x, dp=, ...)
rsn(n=1, location=0, scale=1, shape=0)
rsn(x, dp=)



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

参数:x
vector of quantiles. Missing values (NAs) and Inf's are allowed.
向量的位数。遗漏值(NAS)和Inf:的允许。


参数:p
vector of probabilities. Missing values (NAs) are allowed.
向量的概率。遗漏值(NAS)是允许的。


参数:location
vector of location parameters.
矢量的位置参数。


参数:scale
vector of (positive) scale parameters.
(正)尺度参数向量。


参数:shape
vector of shape parameters. With psn and qsn, it must be of length 1.
向量的形状参数。 psn和qsn,它必须是长度为1。


参数:dp
a vector of length 3, whose elements represent location, scale (positive)  and shape, respectively. If dp is specified, the individual parameters cannot be set.
一个向量的长度为3,其元素表示的位置,规模(正)和形状,分别如果dp指定,不能设置各个参数。


参数:n
sample size.
样本大小。


参数:tol
a scalar value which regulates the accuracy of the result of qsn.
一个标量的值,该值调节的结果的准确性qsn。


参数:log
logical flag used in dsn (default FALSE). When TRUE, the logarithm of the density values is returned.
dsn(默认情况下使用的逻辑标志FALSE“)。当TRUE,密度值的对数,则返回。


参数:engine
character string to select the computing engine, which is either "T.Owen" or "biv.nt.prob" (the latter from package  mnormt). If the parameter is missing, a default selection rule is applied.
字符串选择的计算引擎,这是是"T.Owen"或"biv.nt.prob"(后者从包装mnormt)。如果该参数,默认选择应用规则。


参数:...
additional parameters passed to T.Owen </table>
额外的参数传递给T.Owen</ TABLE>


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

density (dsn), probability (psn), quantile (qsn) or  random sample (rsn) from the skew-normal distribution with given location, scale and shape parameters.
密度(dsn),概率(psn),位数(qsn)或随机样本(rsn)从歪斜正态分布,给出location, scale和shape参数。


背景----------Background----------

The family of skew-normal distributions is an extension of the normal family, via the introdution of a shape parameter which regulates skewness; when shape=0, the skew-normal distribution reduces to the normal one.  The density of the SN distribution in the "standard" case having location=0 and scale=1  is 2*dnorm(x)*pnorm(shape*x). A multivariate version of the distribution exists. See the reference below for additional information.
歪斜正态分布的家庭是一个扩展的正常的家庭中,通过引智shape调节偏斜度的参数,该参数;当shape=0,歪斜正态分布降低到正常的一个。在“标准”的情况下,具有SN分布的密度location=0和scale=1是2*dnorm(x)*pnorm(shape*x)。存在一个多元的分发版。下面的其他信息,请参阅参考。


Details

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

psn and qsn make use either of function T.Owen or biv.nt.prob
psn和qsn使用功能T.Owen或biv.nt.prob


参考文献----------References----------

Azzalini, A. (1985). A class of distributions which includes the normal ones. Scand. J. Statist. 12, 171-178.

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

dmsn, dst,  T.Owen, biv.nt.prob
dmsn,dst,T.Owen,biv.nt.prob


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


pdf <- dsn(seq(-3,3,by=0.1), shape=3)
cdf <- psn(seq(-3,3,by=0.1), shape=3)
qu <- qsn(seq(0.1,0.9,by=0.1), shape=-2)
rn <- rsn(100, 5, 2, 5)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-8 03:02 , Processed in 0.056246 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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