Learn R Programming

mmibain (version 0.2.0)

mmibain: mmibain Shiny App

Description

The user can upload CSV data; choose a model engine (lm, t_test, lavaan); specify the formula, variables, or model; and provide additional arguments. Once the model is fitted, the app allows for setting up hypotheses for evaluation. Upon running the analysis, it displays the results of the Bayesian Informative Hypotheses Evaluation.

Usage

mmibain()

Arguments

Value

This function returns a running instance of the Shiny app. Interact with the app through the browser or the RStudio Viewer pane.

UI Components

  • Data upload (CSV format).

  • Engine selection (lm, t_test, lavaan).

  • Model input based on chosen engine.

  • Additional arguments for statistical model function.

  • Action button to fit the model.

  • Hypotheses input.

  • Fraction input for the bain fraction parameter.

  • Option to evaluate hypotheses with respect to standardized regression coefficients.

  • Confidence interval input.

  • Seed input for reproducibility.

  • Action button to run the Bayesian Informative Hypotheses Evaluation.

Details

This function launches a Shiny app that facilitates a user-friendly interface for setting up and running a Bayesian Informative Hypotheses Evaluation using the bain package.

The app's UI consists of a sidebar for user inputs and a main panel for displaying available variables, model terms, and analysis results. The app relies on the bain package for analysis.

References

Hoijtink, H., Mulder, J., van Lissa, C., & Gu, X. (2019). A tutorial on testing hypotheses using the Bayes factor. Psychological methods, 24(5), 539–556. doi:10.1037/met0000201

See Also

bain

Examples

Run this code
if(interactive()){
  mmibain()
}

Run the code above in your browser using DataLab