set.staircase: Set Up Staircase Parameters

View source: R/set.staircase.R

set.staircaseR Documentation

Set Up Staircase Parameters

Description

Creates a staircase configuration for psychophysical testing procedures. This function sets up the parameters for an adaptive staircase method, including starting value and step sizes for both upward and downward adjustments.

Usage

set.staircase(
  startValue,
  down.steps,
  down.delta,
  up.steps,
  up.delta,
  direction
)

Arguments

startValue

Numeric value indicating the initial stimulus intensity level

down.steps

Numeric value specifying the number of correct responses needed for a downward step

down.delta

Numeric value specifying the size of downward steps

up.steps

Numeric value specifying the number of incorrect responses needed for an upward step

up.delta

Numeric value specifying the size of upward steps

direction

Character string indicating the initial direction of the staircase ("up" or "down")

Value

A list containing the staircase configuration with components:

startValue

The initial stimulus intensity

down.param

Vector containing steps and delta for downward adjustments

up.param

Vector containing steps and delta for upward adjustments

direction

Initial direction of the staircase

Examples

# Create a basic staircase configuration
staircase <- set.staircase(
  startValue = 10,
  down.steps = 2,
  down.delta = 1,
  up.steps = 1,
  up.delta = 1,
  direction = "down"
)


ccamp83/mu documentation built on Nov. 7, 2024, 5:17 p.m.