Skip to content

Instantly share code, notes, and snippets.

@stonegold546
stonegold546 / cfa.R
Last active April 8, 2019 05:14
CFA with Stan
library(lavaan)
library(rstan)
library(rethinking)
library(loo)
options(mc.cores = parallel::detectCores())
rstan_options(auto_write = TRUE)
dat <- dplyr::select(HolzingerSwineford1939, x1:x9)