| itemrest_split | R Documentation |
Split Observations into Discovery and Validation Samples
itemrest_split(
data,
train_fraction = 0.7,
seed = NULL,
validation_method = c("efa", "cfa"),
...
)
data |
Numeric data.frame or matrix. |
train_fraction |
Fraction assigned to discovery, default 0.70. |
seed |
Integer seed; NULL uses the local date in DDMMYYYY format. |
validation_method |
"efa" or "cfa". |
... |
Arguments to itemrest, excluding data and seed. |
A list with discovery, validation, disjoint discovery_rows and validation_rows, and seed. Splitting precedes missing-data handling.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.