validate_family.RdCheck family argument
validate_family(f)
| f | the |
|---|
If no error is thrown than either f itself is returned
(if already a family) or the family object created from f is
returned if f a string or function. Code adapted from rstanarm.