pprodnormal(RMediation)
pprodnormal()所属R语言包:RMediation
Percentile for the Distribution of Product of Two Normal Variables
两个正态变量的百分位数分布的产品
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generates percentiles (100 based quantiles) for the distribution of product of two normal random variables and the mediated effect
产品的两个正态随机变量的分布及其介导的效果产生百分(100分位数)
用法----------Usage----------
pprodnormal(q, mu.x, mu.y, se.x=1, se.y=1, rho = 0, lower.tail=TRUE,
type="prodclin", n.mc=1e5)
参数----------Arguments----------
参数:q
quantile or value of the product
位数或产品的价值
参数:mu.x
mean of x
意思是x
参数:mu.y
mean of y
意思是y
参数:se.x
standard error (deviation) of x
标准错误(偏差)x
参数:se.y
standard error (deviation) of y
标准错误(偏差)y
参数:rho
correlation between x and y, where -1 < rho < 1. The default value is 0.
x和y,其中-1 <rho<1之间的相关性。默认值是0。
参数:lower.tail
logical; if TRUE (default), the probability is P[X*Y < q]; otherwise, P[X*Y > q]
逻辑,如果TRUE(默认)的概率是P[X*Y < q];否则,P[X*Y > q]
参数:type
method used to compute P[X*Y < q]. It takes on the values "prodclin" (default), "DOP", "MC", or "all".
方法用于计算P[X*Y < q]。它需要的值"prodclin"(默认),"DOP","MC"或"all"。
参数:n.mc
when type="MC", n.mc determines the sample size for the Monte Carlo method. The default sample size is 1E5.
当type="MC",n.mc决定样本量的蒙特卡罗方法。默认的样本大小为1E5。
Details
详细信息----------Details----------
This function returns the percentile (probability) and the associated error for the distribution of product of mediated effect (two normal random variables). To obtain a percentile using a specific method, the argument type should be specified. The default method is type="prodclin", which uses the PRODCLIN program described by MacKinnon et al. (2007). type="DOP" uses the code we wrote in R. Note that both type="prodclin" and type="DOP" use the method described by Meeker and Escobar (1994) to evaluate the CDF of the distribution of product of two normal random variables. type="MC" uses the Monte Carlo approach (Tofighi & MacKinnon, 2011). type="all" prints percentiles using all three options. For methods type="prodclin" and type="DOP", the error is the modulus of absolute error for the numerical integration (for more information see Meeker and Escobar, 1994). For type="MC", the error refers to the Monte Carlo error.
这个函数返回的百分位数(概率)和产品的介导作用(两个正态随机变量)的分布相关的错误。使用特定的方法来得到一个百分点,参数type应指定。默认的方法是type="prodclin",使用的PRODCLIN的麦金农等人所描述的程序。 (2007年)。 type="DOP"使用的代码我们写在R.注意,这两个type="prodclin"和type="DOP"使用米克和埃斯科瓦尔(1994)所描述的方法来评估两个正态的分布产品的CDF随机变量。 type="MC"使用蒙特卡罗方法(Tofighi麦金农,2011)。 type="all"打印百分使用所有这三个选项。对于方法type="prodclin"和type="DOP",错误是绝对错误的模量的数值积分(有关详细信息,请参阅米克和埃斯科瓦尔,1994年)。对于type="MC",错误是指的蒙特卡罗错误的。
值----------Value----------
An object of the type list that contains the following values: <table summary="R valueblock"> <tr valign="top"><td>p</td> <td> probability (percentile) corresponding to quantile q</td></tr>
类型的对象list包含以下值:<table summary="R valueblock"> <tr valign="top"> <TD>p </ TD> <TD>概率(百分位)对应的位数q </ TD> </ TR>
<tr valign="top"><td>error</td> <td> estimate of the absolute error</td></tr> </table>
<tr valign="top"> <TD>error </ TD> <TD>估计的绝对误差</ TD> </ TR> </ TABLE>
注意----------Note----------
The PRODCLIN programs may be downloaded from http://www.public.asu.edu/~davidpm/ripl/Prodclin/. A web application of the RMediation program is available from http://amp.gatech.edu/RMediation.
可以下载,从http://www.public.asu.edu/~davidpm / RIPL / Prodclin / PRODCLIN计划。 Web应用程序的RMediation程序是可从http://amp.gatech.edu/RMediation。
(作者)----------Author(s)----------
Davood Tofighi <dtofighi@psych.gatech.edu> and David P. MacKinnon <davidpm@asu.edu>
参考文献----------References----------
MacKinnon, D. P., Fritz, M. S., Williams, J., and Lockwood, C. M. (2007). Distribution of the product confidence limits for the indirect effect: Program PRODCLIN. Behavior Research Methods, 39, 384–389.
Meeker, W. and Escobar, L. (1994). An algorithm to compute the CDF of the product of two normal random variables. Communications in Statistics: Simulation and Computation, 23, 271–280.
Tofighi, D. and MacKinnon, D. P. (2011). RMediation: An R package for mediation analysis confidence intervals. Behavior Research Methods, 43, 692–700. doi:10.3758/s13428-011-0076-x
参见----------See Also----------
medci qprodnormal RMediation-package
medciqprodnormalRMediation-package
实例----------Examples----------
pprodnormal(q=0, mu.x=.5, mu.y=.3, se.x=1, se.y=1, rho= 0, type="all")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|