pprodnormal(q, mu.x, mu.y, se.x=1, se.y=1, rho = 0, lower.tail=TRUE,
type="prodclin", n.mc=1e5)rho < 1. The default value is 0.TRUE (default), the probability is
$P[X*Y < q]$; otherwise, $P[X*Y > q]$"prodclin" (default), "DOP", "MC", or "all".type="MC", n.mc determines the sample
size for the Monte Carlo method. The default sample size is 1E5.list that contains the
following values:qtype 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.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
medci
qprodnormal
RMediation-packagepprodnormal(q=0, mu.x=.5, mu.y=.3, se.x=1, se.y=1, rho= 0, type="all")Run the code above in your browser using DataLab