sample_distribution: Sample probability distribution

sample_distributionR Documentation

Sample probability distribution

Description

Take samples from the set with defined probabilities

Usage

sample_distribution(data, sample_size = 10000)

Arguments

data

data.frame returned by the get_prob_mass

sample_size

int defines the number of draws from the probability distribution

Value

the values of the random variable whose distribution was sampled; in this case these are the proportions of ants from the upper nest segment


TomVuod/overwintering documentation built on Nov. 22, 2023, 10:24 a.m.