Description Usage Arguments Value
Define and fit growth models evaluated on holdout observations.
1 2 | add_holdout_ind(data, ID, hold_column = "hold", random = TRUE,
seed = NULL)
|
data |
Input dataset, can be a |
ID |
A character string name of the column that contains the unique subject identifiers. |
hold_column |
A name of the column that will contain the the holdout indicators |
random |
Logical, specifying if the holdout observations should be selected at random. If FALSE then the last observation for each subject is selected as a holdout. |
seed |
Random number seed for selecting a random holdout. |
An input data with added holdout indicator column (TRUE for holdout observation indicator, FALSE for training observation indicator).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.