qprodnormal(RMediation)
qprodnormal()所属R语言包:RMediation
Quantile for the Distribution of Product of Two Normal Variables
产品分布的分位数为两个正态变量
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Generates quantiles for the distribution of product of two normal random variables
产品的两个正态随机变量的分布产生位数
用法----------Usage----------
qprodnormal(p, mu.x, mu.y, se.x, se.y, rho=0, lower.tail=TRUE,
type="prodclin", n.mc=1e5)
参数----------Arguments----------
参数:p
probability
可能性
参数: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 of Monte Carlo method. The default sample size is 1E5.
当type="MC",n.mc决定样本量的Monte Carlo方法。默认的样本大小为1E5。
Details
详细信息----------Details----------
This function returns a quantile and the associated error (accuracy) corresponding the requested percentile (probability) p of the distribution of product of mediated effect (product of two normal random variables). To obtain a quantile 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 variables. type="MC" uses the Monte Carlo approach (Tofighi & MacKinnon, 2011). type="all" prints quantiles 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.
该函数返回一个分量和相关的误差(精度),对应于请求的百分位数(概率)p的介导作用(两个正常的随机变量的产品)的产物的分布。要获得使用特定的方法位数,参数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>q</td> <td> quantile corresponding to probability p</td></tr>
类型的对象list“”包含以下值:<table summary="R valueblock"> <tr valign="top"> <TD> q</ TD> <TD>位数对应的概率p</ 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 pprodnormal RMediation-package
medcipprodnormalRMediation-package
实例----------Examples----------
##lower tail[#下尾]
qprodnormal(p=.1, mu.x=.5, mu.y=.3, se.x=1, se.y=1, rho=0, lower.tail =
TRUE, type="all")
##upper tail[#上尾]
qprodnormal(p=.1, mu.x=.5, mu.y=.3, se.x=1, se.y=1, rho=0, lower.tail =
FALSE, type="all")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|