czarrar / connectir

Fast and memory efficient approach for connectome-wide association studies in R and C++. Uses custom implementation of multivariate distance matrix regression to associate brain and behavior.
15 stars 9 forks source link

Factor Names and Covariates Missing in MDMR Output formula.txt and factor_names.txt #7

Open utooley opened 7 years ago

utooley commented 7 years ago

modelinfo.rda has correct factor.names and factors2perm, but output txt files are empty. After some investigating, I believe it's a typo in save.mdmr_factors in the line below, "factors.names" should be "factor.names".

all.factornames <- names(attr(modelinfo$qrhs, "factors.names")) perm.factornames <- names(attr(modelinfo$qrhs, "factors2perm")) is <- !(all.factornames %in% perm.factornames) cov.factornames <- all.factornames[is]