Skip to contents

This function generates random sample sizes for each age group using multinomial sampling. It takes the total sample size and the number of age groups as input and returns a vector of sample sizes for each age group.

Usage

multinomial_sampling_group(sample_size, n_ages)

Arguments

sample_size

The total sample size to be distributed among age groups.

n_ages

The number of age groups.

Value

A vector containing random sample sizes for each age group.