reassign_if_empty_groups {RCTS}R 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


[Package RCTS version 0.2.4 Index]