dist_fit: Fit an integer adjusted exponential or gamma distribution

Description Usage Arguments Value Examples

View source: R/dist.R

Description

Fit an integer adjusted exponential or gamma distribution

Usage

1
dist_fit(values = NULL, samples = NULL, dist = "exp")

Arguments

values

Numeric vector of values

samples

Numeric, number of samples to take

dist

Character string, which distribution to fit. Defaults to exponential ("exp") but gamma is also supported ("gamma").

Value

A stan fit of an interval censored distribution

Examples

1
dist_fit(rexp(1:100, 2), samples = 1000, dist = "exp")

epiforecasts/EpiNow documentation built on Oct. 26, 2020, 2:38 p.m.