| create_dist_vec {prevtoinc} | R Documentation | 
Create vector of probabilities for a finite positive discrete distribution
Description
Cuts-off the (possibly unbounded) probability distribution at 'max.dist' and normalizes the resulting vector of probability to sum up to 1.
Usage
create_dist_vec(dist, max.dist)
Arguments
| dist | probability mass function to use | 
| max.dist | maximum value at which to cutoff distribution | 
Value
vector of probabilites for values 1:max.dist
Examples
geom_dist_fct(1:70)
create_dist_vec(geom_dist_fct, max.dist = 70)
[Package prevtoinc version 0.12.0 Index]