dr_families: Families for deepregression

Description Usage Arguments Details

Description

Families for deepregression

Usage

1
make_tfd_dist(family, add_const = 1e-08, output_dim = 1L, trafo_list = NULL)

Arguments

family

character vector

add_const

small positive constant to stabilize calculations

output_dim

number of output dimensions of the response (larger 1 for multivariate case)

trafo_list

list of transformations for each distribution parameter. Per default the transformation listed in details is applied.

Details

To specify a custom distribution, define the a function as follows function(x) do.call(your_tfd_dist, lapply(1:ncol(x)[[1]], function(i) your_trafo_list_on_inputs[[i]]( x[,i,drop=FALSE]))) and pass it to deepregression via the dist_fun argument. Currently the following distributions are supported with parameters (and corresponding inverse link function in brackets):


deepregression documentation built on Oct. 5, 2021, 1:06 a.m.