View source: R/COMMA_boot_sample.R
COMMA_boot_sample | R Documentation |
Generate Bootstrap Samples for Estimating Standard Errors
COMMA_boot_sample(
parameter_estimates,
sigma_estimate = 1,
outcome_distribution,
interaction_indicator,
x_matrix,
z_matrix,
c_matrix
)
parameter_estimates |
A column matrix of |
sigma_estimate |
A numeric value specifying the estimated
standard deviation. This value is only required if |
outcome_distribution |
A character string specifying the distribution of
the outcome variable. Options are |
interaction_indicator |
A logical value indicating if an interaction between
|
x_matrix |
A numeric matrix of predictors in the true mediator and outcome mechanisms.
|
z_matrix |
A numeric matrix of covariates in the observation mechanism.
|
c_matrix |
A numeric matrix of covariates in the true mediator and outcome mechanisms.
|
COMMA_boot_sample
returns a list with the bootstrap sample data:
obs_mediator |
A vector of observed mediator values. |
true_mediator |
A vector of true mediator values. |
outcome |
A vector of outcome values. |
x_matrix |
A matrix of predictor values in the true mediator mechanism. Identical to that supplied by the user. |
z_matrix |
A matrix of predictor values in the observed mediator mechanism. Identical to that supplied by the user. |
c_matrix |
A matrix of covariates. Identical to that supplied by the user. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.