reassign_if_empty_groups: Randomly reassign individual(s) if there are empty groups....

View source: R/03_IFE_algorithm_functions.R

reassign_if_empty_groupsR Documentation

Randomly reassign individual(s) if there are empty groups. This can happen if the total number of time series is low compared to the number of desired groups.

Description

Randomly reassign individual(s) if there are empty groups. This can happen if the total number of time series is low compared to the number of desired groups.

Usage

reassign_if_empty_groups(g, S_true, NN)

Arguments

g

Vector with group membership for all individuals

S_true

true number of groups

NN

number of time series

Value

numeric vector with the estimated group membership for all time series


RCTS documentation built on May 31, 2023, 9:20 p.m.