psychometric¶
Functions:
|
Calculate a psychometric curve (logistic regression of var_y on var_x) |
|
Plot psychometric curves for selected subjects, steps, and variables |
- calc_psychometric(data, var_x, var_y='response')[source]¶
Calculate a psychometric curve (logistic regression of var_y on var_x)
- Parameters
data (
pandas.DataFrame
) – Subject datavar_x (str) – name of column to use as the discriminand
var_y (str) – name of the column for the response, usually ‘response’
- Returns
parameters for logistic function
- Return type
params (tup)
- plot_psychometric(subject_protocols)[source]¶
Plot psychometric curves for selected subjects, steps, and variables
Typically called by
Terminal.plot_psychometric()
.- Parameters
subject_protocols (list) – A list of tuples, each with
subject_id (str)
step_name (str)
variable (str)
- Returns
altair.Chart