
Default method for families which do not require a reparameterisation
Source:R/family.R
epidist_family_param.default.Rd
This function extracts the Stan parameterisation for a given brms family by creating a dummy model and parsing its Stan code. It looks for the log probability density function (lpdf) call in the Stan code and extracts the parameter order used by Stan. This is needed because brms and Stan may use different parameter orderings for the same distribution.
Usage
# Default S3 method
epidist_family_param(family, ...)
Value
The input family object with an additional param
element containing
the Stan parameter ordering as a string
Details
The function works by:
Creating a minimal dummy model using the specified family
Extracting the Stan code for this model
Finding the lpdf function call for the family
Parsing out the parameter ordering used in Stan
Adding this as the
param
element to the family object
See also
Other family:
epidist_family()
,
epidist_family_model()
,
epidist_family_model.default()
,
epidist_family_param()