run_shiny_app: Shiny app: simulation for mediation analysis with outliers

Description Usage Details Author(s) See Also Examples

View source: R/run_shiny_app.R

Description

Compare various bootstrap methods for mediation analysis on simulated data.

Usage

1

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.

Author(s)

Andreas Alfons

See Also

test_mediation

Examples

1
2
3
4
## Not run: 
run_shiny_app()

## End(Not run)

robmed documentation built on Nov. 5, 2018, 5:06 p.m.