Learn R Programming

mmiCATs (version 0.2.0)

KenRCATs: Launch KenRCATs Shiny Application

Description

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.

Usage

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

Value

A 'shiny' app object.

Arguments

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.

Details

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

Examples

Run this code
if(interactive()){
  KenRCATs(
    dbname = "your_database_name",
    datatable = "your_table_name",
    host = "localhost",
    port = 5432,
    user = "your_username",
    password = "your_password"
  )
}

Run the code above in your browser using DataLab