sample_from_age_distribution: Sample ages from a distribution within [min, max] bands

View source: R/contact-matrix-utils.R

sample_from_age_distributionR Documentation

Sample ages from a distribution within ⁠[min, max]⁠ bands

Description

Sample ages from a distribution within ⁠[min, max]⁠ bands

Usage

sample_from_age_distribution(mins, maxs, distribution)

Arguments

mins

integer vector of lower bounds

maxs

integer vector of upper bounds

distribution

data.frame with age and proportion columns

Value

integer vector of sampled ages


socialmixr documentation built on April 29, 2026, 9:07 a.m.