replext_pgsql {npboottprm}R Documentation

Replext Simulation Shiny App with Database Integration

Description

This application replicates and extends the simulation results from the paper by Dwivedi et al. (2017), now with added functionality to interact with a PostgreSQL database. The app includes a user interface for selecting simulation parameters and a server logic to process the simulation and handle user interactions, including saving and retrieving data from a database.

Usage

replext_pgsql(dbname, datatable, host, port, user, password)

Arguments

dbname

The name of the PostgreSQL database to connect to.

datatable

The name of the table in the database where the simulation results will be stored and retrieved.

host

The host address of the PostgreSQL database.

port

The port number for the PostgreSQL database connection.

user

The username for accessing the PostgreSQL database.

password

The password for the specified user to access the PostgreSQL database.

Details

The app's user interface consists of:

The server logic of the app handles:

Value

A Shiny app object which can be run to start the application.

References

Dwivedi AK, Mallawaarachchi I, Alvarado LA. Analysis of small sample size studies using nonparametric bootstrap test with pooled resampling method. Stat Med. 2017 Jun 30;36(14):2187-2205. doi: 10.1002/sim.7263. Epub 2017 Mar 9. PMID: 28276584.

Examples

if (interactive()) {
  replext_pgsql(
    dbname = "your_db_name",
    datatable = "your_data_table",
    host = "localhost",
    port = 5432,
    user = "your_username",
    password = "your_password"
  )
}


[Package npboottprm version 0.3.1 Index]