napjack {scdtb}R Documentation

Nap Jack: A Single Case Design Card Game

Description

This function creates a Shiny application that implements the Nap Jack card game. Nap Jack is a single case design card game where the player deals cards in phases and tries to achieve a winning score based on the analysis of the dealt cards.

Usage

napjack()

Details

The game consists of four phases: baseline 1, treatment 1, baseline 2, and treatment 2. In each phase, the player deals six cards and has the option to swap cards within a row once per phase. After all four phases are completed, the game is scored based on the analysis of the dealt cards using non-overlap of all pairs (NAP) and mixed effects modeling.

The game utilizes the following internal helper functions:

The game also uses the following external functions for analysis:

The player's objective is to achieve a winning score by strategically dealing and swapping cards to optimize the analysis results.

Value

A Shiny application object that represents the Nap Jack game.

Examples

# To run the Shiny app
if(interactive()){
  napjack()
}


[Package scdtb version 0.1.0 Index]