Learn R Programming

robmed (version 0.9.0)

run_shiny_app: Shiny app: simulation for mediation analysis with outliers

Description

Compare various bootstrap methods for mediation analysis on simulated data.

Usage

run_shiny_app()

Arguments

Details

The default settings follow the simulation design of Zu & Yuan (2010). You can adjust the total number of observations, the values of the coefficients in the mediation model, the number of outliers, as well as the expected distance of the outliers from the main point cloud.

As this simulation is just for illustration, the bootstrap procedures use only 1000 replicates. For each selected methods, the bootstrap distribution of the indirect effect is shown together with a shaded area representing the 95% confidence interval.

See Also

test_mediation

Examples

Run this code
# NOT RUN {
run_shiny_app()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab