View source: R/replext_gls_app.R
replext_pgsql | R Documentation |
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.
replext_pgsql(dbname, datatable, host, port, user, password)
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. |
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.
A Shiny app object which can be run to start the application.
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
replext_gls
for the underlying simulation function.
if(interactive()){
replext_pgsql(
dbname = "my_database",
datatable = "simulation_results",
host = "localhost",
port = 5432,
user = "myuser",
password = "mypassword"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.