Skip to contents

Extract the error distribution family (and link function) from a fitted model.

Usage

getFamily(mod)

Arguments

mod

A fitted model object, or a list or nested list of such objects.

Value

A model "family" object, or a list or nested list of such objects.

Details

getFamily() returns an appropriate family object for a range of different model classes, similarly to family(). However, it can be also be used for some classes without an existing family method. Mostly for internal use.

See also

Examples

# SEM model error distributions
getFamily(shipley.sem)
#>            DD         Date       Growth     Live      
#> family     "gaussian" "gaussian" "gaussian" "binomial"
#> link       "identity" "identity" "identity" "logit"   
#> linkfun    ?          ?          ?          ?         
#> linkinv    ?          ?          ?          ?         
#> variance   ?          ?          ?          ?         
#> dev.resids ?          ?          ?          ?         
#> aic        ?          ?          ?          ?         
#> mu.eta     ?          ?          ?          ?         
#> initialize ?          ?          ?          expression
#> validmu    ?          ?          ?          ?         
#> valideta   ?          ?          ?          ?         
#> dispersion NA         NA         NA         ?