metadpy.sdt.criterion#
- metadpy.sdt.criterion(data: DataFrame, hit_rate: None, fa_rate: None, stimuli: str, responses: str, correction: bool = True) float [source]#
- metadpy.sdt.criterion(data: None, hit_rate: float, fa_rate: float, stimuli: None, responses: None, correction: bool = True) float
- metadpy.sdt.criterion(data: None, hit_rate: None, fa_rate: None, stimuli: Union[list, ndarray], responses: Union[list, ndarray], correction: bool = True) float
Response criterion.
- Parameters
- data
Dataframe. Note that this function can also directly be used as a Pandas method, in which case this argument is no longer needed.
- hit_rate
Hit rate.
- fa_rate
False alarm rate.
- stimuli
Name of the column containing the stimuli.
- responses
Name of the column containing the responses.
- Returns
- dprime
The d’ value.
- Raises
- ValueError
If data is not a pd.DataFrame.