View source: R/set.staircase.R
set.staircase | R Documentation |
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.
set.staircase(
startValue,
down.steps,
down.delta,
up.steps,
up.delta,
direction
)
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") |
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 |
# Create a basic staircase configuration
staircase <- set.staircase(
startValue = 10,
down.steps = 2,
down.delta = 1,
up.steps = 1,
up.delta = 1,
direction = "down"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.