validate_family: Check family argument

View source: R/misc.R

validate_familyR Documentation

Check family argument

Description

Check family argument

Usage

validate_family(f)

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.


Biostatistics4SocialImpact/rstap documentation built on Aug. 1, 2022, 1:15 p.m.