Skip to content

Restructure to block-based mental rotation CAT#420

Merged
zwatson2001 merged 5 commits into
mainfrom
mental-rotation-blocked-cat
Feb 26, 2026
Merged

Restructure to block-based mental rotation CAT#420
zwatson2001 merged 5 commits into
mainfrom
mental-rotation-blocked-cat

Conversation

@zwatson2001
Copy link
Copy Markdown
Collaborator

This PR updates the mental rotation CAT so that it selects from one block of stimuli at a time, progressing to the next block if the participant's ability estimate/theta is high enough. The CAT starts out showing 2d animals, but will progress to polygons and then 3D shapes if theta is high enough. If the block threshold is not cleared, it will present another block with the same type of stimuli. Block thresholds will be stored in the corpus csv under block_threshold, and blocks are identified with the block_index corpus column.

Spec diagram from psychometrics:
Screenshot 2026-01-29 at 11 20 16 AM

@zwatson2001
Copy link
Copy Markdown
Collaborator Author

Relates to issue #417

];
practice = practice.filter(
(trial) => !(trial.block_index === '3' && excludedDownexPracticeTypes.includes(trial.trialType)),
(trial) => !(trial.block_index === 3 && excludedDownexPracticeTypes.includes(trial.trialType)),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this to a constant. It's being used in multiple places.

const repeatInstructions = {
timeline: [repeatInstructionsMessage, imageInstructions, videoInstructionsMisfit, videoInstructionsFit],
conditional_function: () => {
return taskStore().numIncorrect >= 2;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this?

Copy link
Copy Markdown
Collaborator

@asengupta3 asengupta3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Pretty cool

@zwatson2001 zwatson2001 merged commit cd4a456 into main Feb 26, 2026
3 checks passed
@zwatson2001 zwatson2001 deleted the mental-rotation-blocked-cat branch February 26, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants