cymr.cmr.CMR.likelihood#
- CMR.likelihood(data, group_param, subj_param=None, param_def=None, patterns=None, study_keys=None, recall_keys=None)#
Log likelihood summed over all subjects.
- Parameters:
data (pandas.DataFrame) – Data to fit. Must include a ‘subject’ column.
group_param (dict of (str: float)) – Parameters that are fixed at the group level.
subj_param (dict of (str: dict of (str: float))) – Parameters that vary by subject, indexed by subject.
param_def (cymr.parameters.Parameters) – Parameter definitions (used to set dependent and dynamic).
patterns (dict of (str: dict of (str: numpy.array))) – Patterns to use in the model.
study_keys (list of str) – Fields to include in study data.
recall_keys (list of str) – Fields to include in recall data.
- Returns:
stats – Statistics related to model fitness. Includes logl, the log likelihood for each subject, and n, the number of data points for each subject.
- Return type:
pandas.DataFrame