Family functions specify the outcome distribution and link function of a
bml model, following the brms/glm
convention of passing a family function rather than a string:
gaussian(): normal outcome, identity linkbernoulli()(aliasbinomial()): binary outcome, logit linkweibull(): Weibull survival model; outcomeSurv(time, event)cox(intervals = NULL): Cox proportional hazards model; outcomeSurv(time, event).intervalscontrols the baseline hazard:NULLuses all unique event times (non-parametric); an integer k uses a piecewise-constant baseline hazard with k intervals (faster).
Family strings are accepted as first-class input too (as in brms):
family = "gaussian", "bernoulli", "weibull", "cox".
Arguments
- link
Link function. Only the canonical links are supported by the JAGS backend (
"identity"for gaussian,"logit"for bernoulli,"log"for weibull/cox); passing anything else errors.- intervals
For
cox():NULLfor a non-parametric baseline hazard (all unique event times), or a positive integer number of intervals for a piecewise-constant baseline hazard.