metadpy.utils.responseSimulation#

metadpy.utils.responseSimulation(d: float = 1.0, metad: float = 2.0, c: float = 0, nRatings: int = 4, nTrials: int = 500, nSubjects: int = 1) DataFrame[source]#

Simulate response and confidence ratings for one or a group of participants.

Parameters
d

Type 1 task performance (d prime).

metadfloat

Type 2 sensitivity in units of type 1 dprime.

c

Type 1 task bias (criterion).

nRatings

Number of ratings.

nTrials

Set the number of trials performed.

nSubjects

Specify the number of subject who performed the task.

Returns
output_df

A DataFrame (nRows==`nTrials`) containing the responses and confidence rating for one or many participants given the provided parameters.

See also

ratings2df

References

This function is adapted from the Matlab cpc_metad_sim function from: metacoglab/HMeta-d