family-methods: Family objects for models

familyR Documentation

Family objects for models

Description

Family objects provide a convenient way to specify the details of the models used by netReg. See also stats::family for more details.

Usage

family(object, ...)

gaussian(link = c("identity"))

binomial(link = c("logit", "probit", "log"))

poisson(link = c("log"))

gamma(link = c("inverse"))

beta(link = c("logit", "probit", "log"))

inverse.gaussian(link = c("1/mu^2"))

Arguments

object

a object for which the family shoulr be retured (e.g. edgenet)

...

further arguments passed to methods

link

name of a link function

Value

An object of class netReg.family

family

name of the family

link

name of the link function

linkinv

inverse link function

loss

loss function

Examples

gaussian()
binomial("probit")$link
poisson()$linkinv
gamma()$linkinv
beta()$loss
inverse.gaussian()$loss

dirmeier/netReg documentation built on July 11, 2024, 1:22 p.m.