You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/nsa_flow_fa.Rmd
+12-16Lines changed: 12 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,9 @@ library(corrplot)
24
24
library(ggplot2)
25
25
library(patchwork)
26
26
library(reshape2)
27
+
library(ANTsR)
27
28
set.seed(1234)
29
+
28
30
```
29
31
30
32
# Introduction
@@ -244,8 +246,6 @@ NSA-Flow-FA combines traditional statistical factor modeling with modern geometr
244
246
For predictive comparisons, the dataset is split into 80% training and 20% testing sets. Models are fitted on the training set, and evaluations are performed on the test set.
245
247
246
248
```{r methods,echo=FALSE}
247
-
248
-
library(ANTsR)
249
249
paf_standalone <- function(data = NULL, R = NULL, nfactors, rotate = "none", max_iter = 100, tol = 1e-5) {
250
250
if (!is.null(data)) R <- cor(data)
251
251
fit <- psych::fa(R, nfactors = nfactors, rotate = rotate, fm = "pa", max.iter = max_iter)
0 commit comments