build_dist: Build Distribution Functions

Description Usage Arguments Value Examples

View source: R/distfun.R

Description

A wrapper for building function families given a numeric vector and the distribution

Usage

1

Arguments

x

numeric vector

distribution

distribution character name

Value

list of distribution functions for d, p, q, r, and parameters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
fittedDists <- build_dist(rpois(100,5), 'pois')
dpois(x = 5, lambda = 5)
fittedDists$dpois(5)
ppois(5, 5)
fittedDists$ppois(5)
qpois(.5, 5)
fittedDists$qpois(.5)
set.seed(8257)
rpois(100, 5)
set.seed(8257)
fittedDists$rpois(100)
fittedDists$parameters

fitur documentation built on May 2, 2019, 6:37 a.m.