pMC | R Documentation |
This function returns a probability corresponding to the quantile q
.
pMC(q, mu, Sigma, quant, lower.tail = TRUE, n.mc = 1e+06, ...)
q |
quantile |
mu |
a vector of means (e.g., coefficient estimates) for the normal random variables. A user can assign a name to each mean value, e.g., |
Sigma |
either a covariance matrix or a vector that stacks all the columns of the lower triangle variance–covariance matrix one underneath the other. |
quant |
quantity of interest, which is a nonlinear/linear function of the model parameters. Argument |
lower.tail |
logical; if |
n.mc |
Monte Carlo sample size. The default sample size is 1e+6. |
... |
additional arguments. |
scalar probability value.
Davood Tofighi dtofighi@gmail.com
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
RMediation-package
pMC(.2,
mu = c(b1 = 1, b2 = .7, b3 = .6, b4 = .45), Sigma = c(.05, 0, 0, 0, .05, 0, 0, .03, 0, .03),
quant = ~ b1 * b2 * b3 * b4
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.