The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
The cpmr package is specifically designed for the analysis of the connectome predictive modeling (CPM) method in R. This package relies on Rfast to do row oriented calculation.
You can install the released version of cpmr from CRAN with:
install.packages("cpmr")
Or you can install the development version of cpmr from r-universe with:
install.packages("cpmr", repos = c("https://psychelzh.r-universe.dev", getOption("repos")))
It is very simple to use this package. Just shape your connectivity
matrix as a subjects by edges matrix, i.e., each row contains the
correlation matrix (removed diagonal and duplicated values, e.g., lower
triangular data) for each subject, and your behavior data a vector and
feed them in cpm()
function.
library(cpmr)
::local_seed(123)
withr<- matrix(rnorm(100 * 1000), nrow = 100)
conmat <- rnorm(100)
behav <- cpm(conmat, behav, kfolds = 10)
res plot(res$real, res$pred[, "both"], xlab = "Real", ylab = "Predicted")
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.