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(n_sample, n_ages)

Arguments

n_sample

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.