--
Hi Julie,
I have a feeling that SVC means small-volume correction... I did not develop the script, but Tor developed it, and I used it before. robust_reg_nonparam.m is working for that. If you're mentioning small-volume correction, I can send an example code. Could you clarify what you're mentioning?
Thanks,
Wani
--

Hi Wani,Sure, sounds good. Good luck with your meeting!Best,Julie
Sent from my iPhoneHi Julie,Could I send it to you later today? I'm having a master's proposal meeting soon :) I will send it to you after it.

Hi Julie,
I'm sending some explanation with an example code. Here, one important thing is the design matrix for the second level. The following example is what I have understood about the second-level design matrix. However, there could be other different opinions about how to model subject effects (this is an issue only when you're using more than 2 images per subject in the second level). Hope this helps!
% To use the robust_reg_nonparam, you need a design matrix. If you are only interested in whether data are different from zero (i.e., t test),
.
Hi Julie,
I'm sending this again because there were some unclear sentences in the previous email. I'm somewhat conscious that this will be posted on the website. hmm.. pressure.. :) Okay, I'm sending a little bit of explanation along with a simple example code. Here, one important thing is to build a design matrix for the second level. The following example is what I've understood about the second-level design matrix. However, there could be different opinions about how to model subject effects (this is an issue only when you're using more than 2 images per subject in the second level). Hope this helps!
To use the robust_reg_nonparam, you need to provide a design matrix. If you are interested only in whether data are different from zero (i.e., simple t test), you only need one intercept vector - i.e., ones(subj_n,1). If you want to test effects of one condition vs. another condition (so 2 images per subject), you will need a vector of 1s and -1s for images (contrast vector), vectors that consists for subject intercepts (modeling the subject effect), and one intercept vector (see the following image). In addition to these, you can add covariates (which could be about individual differences).
<image.jpeg>
Let's assume you already build a design matrix (X) here.
cd(modeldir);
imgs = [data_images{1}; data_images{2}]; % Data image you're interested in. Here I'm using 2 images per subject
savename = 'nparam_model';
x_names = {'interest', 'sub_intercept1','sub_intercept2',...}; % You can provide names of regressors in design matrix. If you don't want, you don't need to provide this.
mask = 'xxx.img'; % enter mask image name;
Result = robust_reg_nonparam(X, 10000, 'mask', mask, 'data', imgs, 'names', x_names ,'file',savename,'startover');save Result Result; % Saving Result could be a good idea.Then, you will be able to find results in Result.svc. If you find only one significant voxel within the mask, we could say the ROI is significant. There is a visualization function to show cluster extent of mask and significant voxel within the mask, but I don't know the name. Also, see help robust_reg_nonparm, which could be really helpful. :)Thanks,
Wani
On Wed, Dec 19, 2012 at 3:31 PM, Wani (ChoongWan) Woo <clinp...@gmail.com> wrote:
Hi Julie,
I'm sending some explanation with an example code. Here, one important thing is the design matrix for the second level. The following example is what I have understood about the second-level design matrix. However, there could be other different opinions about how to model subject effects (this is an issue only when you're using more than 2 images per subject in the second level). Hope this helps!
% To use the robust_reg_nonparam, you need a design matrix. If you are only interested in whether data are different from zero (i.e., t test),
% you only need one intercept vector - i.e., ones(subj_n,1).
% If you want to test effects of one condition vs. another condition (so 2 images per subject),
% you will need a vector 1s and -1s for images (contrast vector), a matrix for subject intercept (modeling the subject effect),
% and overall intercept (see the following image). This could be one way to model subject effects.
% You can add covariates as well.
<image.jpeg>
--
--
thanks for providing this wonderful tool.
I just wanted to report a potential error: in robust_nonpar_set_level_svc on line 24 it says "binomcdf". I think it needs to be changed to "binocdf" (sans the "m"). I am assuming that I am working with the most recent version, as I downloaded this today from github.
All best,
Jan
--
You received this message because you are subscribed to the Google Groups "WagerlabTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wagerlabtools+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.