larch.model.model_group.ModelGroup.loglike
larch.model.model_group.ModelGroup.loglike¶
- ModelGroup.loglike(x=None, *, start_case=0, stop_case=- 1, step_case=1, persist=0, leave_out=- 1, keep_only=- 1, subsample=- 1, return_series=True, probability_only=False)[source]¶
Compute a log likelihood value.
- Parameters
x ({'null', 'init', 'best', array-like, dict, scalar}, optional) – Values for the parameters. See set_values for details.
- Returns
dictx – The log likelihood is given by key ‘ll’ and the first derivative by key ‘dll’. Other arrays are also included if persist is set to True.