Description Usage Arguments Value Author(s) See Also Examples
Generates B
number of parametric bootstrap
resamples from the original sample data generated
fitted with the simple mediation model,
M_i = δ_M + α X_i + ε_{M_i} and
Y_i = δ_Y + τ^{\prime} X_i + β M_i + ε_{Y_i}.
The user can specify the distribution and parameters of X.
Variables M and Y are generated
using values of variable X
and parameters provided assuming that the residuals
are normally distributed
with a mean of 0 and a given variance.
1 2 3 4 5 6 7 8 9 10 11 12 13 | boot_pb_med_simple(
n,
alpha,
tau_prime,
beta,
delta_M,
delta_Y,
sigma2_epsilon_M,
sigma2_epsilon_Y,
B = 2000,
rFUN_X,
X_args
)
|
n |
Sample size. |
alpha |
Path from X to M (α). |
tau_prime |
Path from X to Y (τ^{\prime}). |
beta |
Path from M to Y (β). |
delta_M |
Intercept for the first equation (δ_M). |
delta_Y |
Intercept for the second equation (δ_Y). |
sigma2_epsilon_M |
Variance of ε_M (σ^{2}_{ε_{M}}). |
sigma2_epsilon_Y |
Variance of ε_Y (σ^{2}_{ε_{Y}}). |
B |
Number of bootstrap resamples. |
rFUN_X |
The distribution function
used to generate values of \mathbf{X}.
The default value is |
X_args |
List of arguments
to pass to |
Returns a list of parametric bootstrap resamples.
Ivan Jacob Agaloos Pesigan
Other bootstrap functions:
boot_fit()
,
boot_lav()
,
boot_nb()
,
boot_pb_vm()
,
boot_pb()
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.