Family objects provide a convenient way to specify the details
of the models used by pareg
.
See also stats::family
for more details.
a object for which the family shoulr be retured
(e.g. edgenet
)
further arguments passed to methods
name of a link function
An object of class pareg.family
name of the family
name of the link function
inverse link function
loss function
gaussian()
#> $family
#> [1] "gaussian"
#>
#> $link
#> [1] "identity"
#>
#> $linkfun
#> NULL
#>
#> $linkinv
#> function (x)
#> x
#> <bytecode: 0x7fd2f5be1498>
#> <environment: namespace:pareg>
#>
#> $loss
#> function (y, mu.hat, ...)
#> {
#> obj <- tf$reduce_mean(tf$square(y - mu.hat))
#> obj
#> }
#> <bytecode: 0x7fd2f5be0900>
#> <environment: namespace:pareg>
#>
#> $secondary_linkinv
#> NULL
#>
#> attr(,"class")
#> [1] "pareg.family"
bernoulli("probit")$link
#> [1] "probit"
beta()$loss
#> function (y, mu_hat, phi_hat, ...)
#> {
#> beta.loss(y, mu_hat, tf$ones(tf$shape(mu_hat)), ...)
#> }
#> <bytecode: 0x7fd30aec0800>
#> <environment: 0x7fd2f8785c48>