cymr.fit.Recall.generate#
- Recall.generate(data, group_param, subj_param=None, param_def=None, patterns=None, study_keys=None, recall_keys=None, n_rep=1)#
Generate simulated data for all subjects.
- Parameters:
data (pandas.DataFrame) – Data to guide simulation. Must include a ‘subject’ column. May include dummy recall events if there is a dynamic recall parameter.
group_param (dict of (str: float)) – Values of parameters that apply to all subjects.
subj_param (dict of (str: dict of (str: float))) – Parameters that vary by subject, indexed by subject.
param_def (cymr.parameters.Parameters, optional) – Parameter definitions.
patterns (dict of (str: dict of (str: numpy.array)), optional) – Patterns to use in the model.
study_keys (list of str) – Data columns to include for the study phase.
recall_keys (list of str) – Data columns to include for the recall phase.
n_rep (int) – Number of times to repeat the simulation for each subject.
- Returns:
sim_data – Simulated data for each subject.
- Return type:
pandas.DataFrame