simulate_efast: Simulate data from an efast matrix

View source: R/data_generation.R

simulate_efastR Documentation

Simulate data from an efast matrix

Description

Simulate a dataset as in the simulations of Van Kesteren & Kievit (2019). There are 17 regions of interest, measured in both the left and right hemisphere. These ROIs have a predefined amount of correlation over and above that expected by only the underlying factors.

Usage

simulate_efast(
  N = 650L,
  lam_lat = 0.595,
  lam_bil = 0.7,
  psi_cov = 0.5,
  cor_uniq = 0.4
)

Arguments

N

<int> Sample size

lam_lat

<numeric> factor loading for the lateralised factor

lam_bil

<numeric> factor loading for the bilateral factors

psi_cov

<numeric> covariances of latent variables in (0, 1)

cor_uniq

<numeric> residual correlation

Value

data frame with 17 regions of interest, bilaterally measured with 4 underlying factors and contralateral homology.

References

Van Kesteren, E. J., & Kievit, R. K. (2019) Exploratory factor analysis with structured residuals applied to brain morphology.


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