psifr.fr.spc#
- psifr.fr.spc(df)#
Serial position curve.
- Parameters:
df (pandas.DataFrame) – Merged study and recall data. See merge_lists.
- Returns:
recall –
- subjecthashable
Subject identifier.
- inputint
Serial position in the list.
- recallfloat
Recall probability for each serial position.
- Return type:
Examples
>>> from psifr import fr >>> raw = fr.sample_data('Morton2013') >>> data = fr.merge_free_recall(raw) >>> fr.spc(data) subject input recall 0 1 1.0 0.541667 1 1 2.0 0.458333 2 1 3.0 0.625000 3 1 4.0 0.333333 4 1 5.0 0.437500 .. ... ... ... 955 47 20.0 0.500000 956 47 21.0 0.770833 957 47 22.0 0.729167 958 47 23.0 0.895833 959 47 24.0 0.958333 [960 rows x 3 columns]