validate_family: Check family argument

Description Usage Arguments Value

View source: R/misc.R

Description

Check family argument

Usage

1

Arguments

f

the family argument specified by user (or default)

Value

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.


rstap documentation built on May 1, 2019, 9:21 p.m.