replext_pgsql: Replication and Extension of Generalized Least Squares...

View source: R/replext_gls_app.R

replext_pgsqlR Documentation

Replication and Extension of Generalized Least Squares Simulation Shiny App

Description

This function creates a Shiny app for running and visualizing simulations of Generalized Least Squares (GLS) models, extending the work of Maric et al. (2014). It allows users to interactively set simulation parameters, run simulations, view results, and generate plots.

Usage

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

Arguments

dbname

Character string. The name of the PostgreSQL database to connect to.

datatable

Character string. The name of the table in the database where results will be stored.

host

Character string. The host name or IP address of the PostgreSQL server.

port

Integer. The port number on which the PostgreSQL server is listening.

user

Character string. The username for the PostgreSQL database connection.

password

Character string. The password for the PostgreSQL database connection.

Details

The app provides a user interface for:

  • Setting simulation parameters

  • Running simulations based on the specified parameters

  • Viewing simulation results in a table format

  • Generating plots of various metrics across different conditions

  • Storing and retrieving results from a PostgreSQL database

  • Displaying relevant citations

The app uses the replext_gls() function to perform the actual simulations.

Value

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

References

Maric, M., de Haan, E., Hogendoorn, S.M., Wolters, L.H. & Huizenga, H.M. (2014). Evaluating statistical and clinical significance of intervention effects in single-case experimental designs: An SPSS method to analyze univariate data. Behavior Therapy. doi: 10.1016/j.beth.2014.09.009

See Also

replext_gls for the underlying simulation function.

Examples

if(interactive()){
replext_pgsql(
  dbname = "my_database",
  datatable = "simulation_results",
  host = "localhost",
  port = 5432,
  user = "myuser",
  password = "mypassword"
)
}


scdtb documentation built on Sept. 30, 2024, 9:35 a.m.