efast_efa: Estimate an EFA model in lavaan

View source: R/efast.R

efast_efaR Documentation

Estimate an EFA model in lavaan

Description

This function estimates efa models in the same way that efast models are estimated: using lavaan.

Usage

efast_efa(
  data,
  M,
  sample.nobs = NULL,
  auto.fix.first = FALSE,
  auto.var = TRUE,
  auto.efa = TRUE,
  information = "observed",
  std.ov = TRUE,
  ...
)

Arguments

data

<data.frame> the dataset or <matrix> covariance matrix

M

<numeric> How many factors, minimum 2

sample.nobs

<numeric> sample size (if data = covmat, see lavaan)

auto.fix.first

<bool> see lavaan

auto.var

<bool> see lavaan

auto.efa

<bool> see lavaan

information

<character> see lavaan

std.ov

<bool> see lavaan

...

other arguments passed to lavaan

Details

The constrained model constrains the residual covariance to be equal across the different ROIs.

Examples

## Not run: 
# create a test dataset
test_data <- simulate_efast()
fit_efa <- efast_efa(simdat, M = 4)
summary(fit_efa)

## End(Not run)


vankesteren/efast documentation built on March 5, 2024, 9:41 p.m.