fit_bins: fit_bins

Description Usage Arguments Value

View source: R/stat.R

Description

for each bin in 'bins' select pmfs in 'dat' where expected means in bin equals 'ids' in 'dat' compute interarrival times as expected mean of convolved difference of successive arrivals fit to exponential distribution return interarrival times, exp fit, med and 95

Usage

1
fit_bins(dat, ids, bins, dist = "exp", index = as.numeric(rownames(char_pmfs)))

Arguments

dat

is a numeric matrix of pmfs (pmf, samples)

ids

is a numeric vector of expected means of samples in 'dat'

bins

is a list of numeric matrices of pmfs (pmf, samples)

dist

is the distribution used by 'fitdistrplus::fitdist'

index

is a numeric vector of values associated with pmf in 'dat'

Value

a list of interarrival times, exp fits, med and ci values


crumplecup/muddier documentation built on Aug. 18, 2021, 11:02 a.m.