Category conditional response probability
category_crp.Rd
Response probability of within-category transitions, conditional on availability.
Arguments
- data
Merged study and recall data.
- category_key
Name of column with category labels.
- item_query
Query string to select items to include in the pool of possible recalls to be examined.
- test_key
Name of column with labels to use when testing transitions for inclusion.
- test
Function that takes in previous and current item values and returns TRUE for transitions that should be included.
Value
Results with subject
, prob
, actual
, and possible
columns.
The prob
column indicates conditional response probability. The actual
column indicates the count of transitions actually made at a given lag. The
possible
column indicates the number of transitions that could have been
made, given item availability (previously recalled items are excluded).
Examples
raw <- sample_data("Morton2013")
data <- merge_free_recall(raw, study_keys = list("category"))
cat_crp <- category_crp(data, "category")
head(cat_crp)
#> subject prob actual possible
#> 1 1 0.8011472 419 523
#> 2 2 0.7334559 399 544
#> 3 3 0.7631579 377 494
#> 4 4 0.8148820 449 551
#> 5 5 0.8772727 579 660
#> 6 6 0.8096154 421 520