2015年7月23日 星期四

7.23 Using gedit to create specific design.con and design.mat

This link from UTexas is very helpful:
http://wikis.la.utexas.edu/imagelab/book/statistical-analysis-fa-values

  • The design.mat files looks like this:
/NumWaves 2
/NumPoints 4
/PPheights 1 1
/Matrix
0 1
1 0
1 0
0 1
  • The design.con file will look like this:
/NumWaves 2
/NumContrasts 2
/PPheights 1 1
/Matrix
1 -1
-1 1

Just open gedit on ssh shell and modify these parameters when later on need to add covariate into the statistical analysis.

Another way is using R to do that, which requires additional step (import the data, re-combine the rows with attention paying to the datatype, then export it (which I still not figure out)). Anyway, gedit is super fast.
 

沒有留言:

張貼留言