Learn R Programming

iotarelr (version 0.1.6)

get_random_start_values_class_sizes: Generating randomly chosen probabilities for categorical sizes

Description

Function written in C++ for generating a set of randomly chosen probabilities describing the size of the different classes. The probabilities describe the relative frequencies of the categories in the data.

Usage

get_random_start_values_class_sizes(n_categories)

Value

Returns a vector of randomly chosen categorical sizes.

Arguments

n_categories

Integer for the number of categories in the data. Must be at least 2.