Skip to content

Commit 547949e

Browse files
authored
Update ShaunRdoc-r01_fullbrain4.2.Rmd
1 parent f6df740 commit 547949e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ShaunRdoc-r01_fullbrain4.2.Rmd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ correlation_matrix <- cor(data0)
3636
heatmap.2(data.matrix(correlation_matrix), dendrogram = c("none"), Rowv = NA, Colv = NA, trace="none",col="bluered")
3737
```
3838

39+
```{r, fig.height = 8, fig.width = 8}
40+
data_ns <- import('RDoCseedmaps_fullbrain.xlsx',sheet='Avg347_smoothedthresholded')
41+
42+
columns_to_remove <- c("PVSRR_anticipation","PVSRL_probability","PVSRV_delay","CSP_visual", "CSP_auditory","CSP_somatosensory","CSCC_representation","CSCC_monitoring","CSCC_performance","CSWM_flexible","CSWM_capacity","SPMSU_mental_state","SSMA_planning","SSMA_selection","SSMA_dynamic","SSMA_sensory_action", "ARCRSW_circadian_sleep_wakefulness")
43+
data_ns <- data_ns[, !(names(data_ns) %in% columns_to_remove)]
44+
45+
data_ns[] <- lapply(data_ns, as.numeric)
46+
data_ns <- apply(data_ns, 2, scale)
47+
```{r, fig.height = 8, fig.width = 8}
48+
3949
```{r, fig.height = 8, fig.width = 8}
4050
EFA.fit <- fa(data0, nfactors=8, rotate="oblimin", fm="pa")
4151
fa.diagram(EFA.fit)

0 commit comments

Comments
 (0)