dist_lists {disttree}R Documentation

Family List Generating Functions

Description

The functions dist_gaussian, dist_crch, dist_exponential, dist_weibull, dist_gamma and dist_poisson generate a distribution family list with all the required elements to fit a distribution in distfit.

Complete distribution family lists are provided by dist_list_normal and dist_list_cens_normal.

Usage

  dist_gaussian()
  dist_crch(dist = c("gaussian", "logistic"), truncated = FALSE,
            type = c("left", "right", "interval"), censpoint = 0)
  dist_exponential()
  dist_weibull()
  dist_gamma()
  dist_poisson()

Arguments

dist

character. Either a gaussian ('gaussian') or a logistic ('logistic') distribution can be selected.

truncated

logical. If TRUE truncated family list is generated with 'censpoint' interpreted as truncation points, If FALSE censored family list is generated. Default is FALSE

type

character. Type of censoring can be selectes ('left', 'right' or 'interval')

censpoint

numeric. Censoring point can be set (per default set to 0).

Details

The functions dist_gaussian, dist_crch, dist_exponential, dist_weibull, dist_gamma and dist_poisson generate a distribution family list with all the required elements to fit a distribution in distfit. These lists include a density function, a score function, a hessian function, starting values, link functions and inverse link functions.

Complete distribution family lists are provided by dist_list_normal and dist_list_cens_normal for the normal and censored normal distribution respectively.

Value

These functions return a list with functions of the corresponding distribution family as required by distfit.

Examples

## get the family list for a Gaussian distribution family
dist_gaussian()

[Package disttree version 0.1-0 Index]