View source: R/factor_analysis.R
fa_splitsample_repeat | R Documentation |
Divides a dataset into 2 at random, extracts a factor from each and correlates them. Then saves the correlation. Repeats this any desired number of times. Can also return the factor scores instead of correlations.
fa_splitsample_repeat(
data,
runs = 100,
save_scores = F,
messages = T,
progress = T,
seed = 1,
...
)
data |
(data.frame or matrix) The data. |
runs |
(integer scalar) The number of runs to do. |
save_scores |
(boolean scalar) Whether to save scores. |
messages |
(lgl scalar) Whether to display messages. |
progress |
(lgl scalar) Whether to display progress bar. |
seed |
(num scalar) Seed to use for reproducible results. Pass |
... |
Extra parameters to pass to psych::fa(). |
fa_splitsample_repeat(iris[-5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.