fa_splitsample_repeat: Repeated splithalf reliability with factor analysis

View source: R/factor_analysis.R

fa_splitsample_repeatR Documentation

Repeated splithalf reliability with factor analysis

Description

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.

Usage

fa_splitsample_repeat(
  data,
  runs = 100,
  save_scores = F,
  messages = T,
  progress = T,
  seed = 1,
  ...
)

Arguments

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 NULL to not use a seed.

...

Extra parameters to pass to psych::fa().

Examples

fa_splitsample_repeat(iris[-5])

Deleetdk/kirkegaard documentation built on April 22, 2024, 5:22 p.m.