Model

Model(spec, dataset=None)

A model spec: the family, its data, and any trends, constraints, or fixed values.

Build one with a model_*() constructor rather than directly. Pass it to any analysis in place of a plain data vector, or evaluate it with :func:model_validate, :func:model_simulate, :func:model_log_likelihood, and :func:model_parameters.

Methods

Name Description
to_json The model as the JSON spec the shared C++ core parses.

to_json

Model.to_json()

The model as the JSON spec the shared C++ core parses.