Using {ordinalsimr}

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(ordinalsimr)

Shiny App

The {ordinalsimr} package wraps a Shiny application and supporting functions for running simulation studies on several pre-selected statistical tests applicable to ordinal data. The Shiny app is particularly suited for calculating Power and Type II error for a proposed 2-group comparison of an ordinal endpoint. Available parameters to manipulate before running the tests include:

In addition to these parameters for running the simulation, the following can be adjusted in the Distributions page

Bug reports and feature requests can be submitted as issues at https://github.com/NeuroShepherd/ordinalsimr/issues

Using Downloaded Data

Data downloaded after running a simulation is stored as a .rds file, and can be loaded into your R session using readRDS(). The data is structured as a named list with 3 elements at the top level, and several sub-elements. A summary of the available information is available in the code below.

output <- readRDS("data-2025-01-19-d8621b-1.rds")
output$comparison_data$distribution_statistics
str(output, max.level = 2)


Try the ordinalsimr package in your browser

Any scripts or data that you put into this service are public.

ordinalsimr documentation built on June 25, 2025, 5:11 p.m.