sim_rstar_glm_pgsql {holi} | R Documentation |
Shiny App for Running r* GLM Simulations with PostgreSQL Integration
Description
This function launches a Shiny application for setting up and running simulations
based on the rstar_glm
function. The app allows users to input parameters for the
simulation, run the simulation, view results, and save results to a PostgreSQL database.
Usage
sim_rstar_glm_pgsql(dbname, datatable, host, port, user, password)
Arguments
dbname |
The name of the PostgreSQL database. |
datatable |
The name of the table in the PostgreSQL database to save the results. |
host |
The host of the PostgreSQL database. |
port |
The port of the PostgreSQL database. |
user |
The username for accessing the PostgreSQL database. |
password |
The password for accessing the PostgreSQL database. |
Value
A Shiny app object that can be run locally.
References
Pierce, D. A., & Bellio, R. (2017). Modern Likelihood-Frequentist Inference. International Statistical Review / Revue Internationale de Statistique, 85(3), 519–541. doi:10.1111/insr.12232
Bellio R, Pierce D (2020). likelihoodAsy: Functions for Likelihood Asymptotics. R package version 0.51, https://CRAN.R-project.org/package=likelihoodAsy.
Examples
if (interactive()) {
sim_rstar_glm_pgsql(
dbname = "mydb",
datatable = "simulation_results",
host = "localhost",
port = 5432,
user = "myuser",
password = "mypassword"
)
}