KenRCATs {mmiCATs} | R Documentation |
This function launches a 'shiny' application for conducting power analysis simulations using CATs (Clustered Adjusted t-statistics) and Kenward-Roger methods. The app allows users to input simulation parameters, run simulations, view results, and manage data in a PostgreSQL database.
KenRCATs(dbname, datatable, host, port, user, password)
dbname |
Character string specifying the name of the PostgreSQL database. |
datatable |
Character string specifying the name of the table in the database. |
host |
Character string specifying the host name or IP address of the database server. |
port |
Integer specifying the port number on which the database is running. |
user |
Character string specifying the username for database connection. |
password |
Character string specifying the password for database connection. |
The KenRCATs function sets up a Shiny application with the following features:
Input fields for various simulation parameters
Ability to run power analysis simulations
Display of simulation results
Option to submit results to a PostgreSQL database
Functionality to download data from the database
Display of relevant citations
A 'shiny' app object.
if(interactive()){
KenRCATs(
dbname = "your_database_name",
datatable = "your_table_name",
host = "localhost",
port = 5432,
user = "your_username",
password = "your_password"
)
}