Back to PLS Help

exporting data of ERP behavioral PLS
giorgio.arcara
Posted on 05/17/12 05:12:13
Number of posts: 6

Dear PLS experts,

I need to export some PLS results to draw some graphs outside matlab, but I was not able to figure out how data are arranged in matrices of ERPresuls.mat file.

Specifically, I need to export the data of design scores and the scatterplot with scalp-scores and behavioral measures.
I tried by myself, but I don't understand how subjects and conditions are arranged in result matrices

Thanks!


Giorgio

Replies:

Untitled Post

I'm Online
jshen
Posted on 05/17/12 09:27:03
Number of posts: 291
jshen replies:


You have to do so LV by LV, group by group and condition by condition. e.g.:


For design scores vs scalp-scores:

figure;hold on;
for i=1:size(designscores,1),plot(designscores(i,1),scalpscores(i,1),'*');end;


For behavioral measures vs scalp-scores:

figure;hold on;
for i=1:num_subj_lst(1),plot(behavdata_lst{1}(i,1),scalpscores(i,1),'*');end;
p=polyfit(behavdata_lst{1}(1:num_subj_lst(1),1),scalpscores(1:num_subj_lst(1),1),1);
v=polyval(p,behavdata_lst{1}(1:num_subj_lst(1),1));
plot(behavdata_lst{1}(1:num_subj_lst(1),1),v);





Login to reply to this topic.

  • Keep in touch

Enter your email above to receive electronic messages from Baycrest, including invitations to programs and events, newsletters, updates and other communications.
You can unsubscribe at any time.
Please refer to our Privacy Policy or contact us for more details.

  • Follow us on social
  • Facebook
  • Instagram
  • Linkedin
  • Pinterest
  • Twitter
  • YouTube

Contact Us:

3560 Bathurst Street
Toronto, Ontario
Canada M6A 2E1
Phone: (416) 785-2500

Baycrest is an academic health sciences centre fully affiliated with the University of Toronto