亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tucker3.m

?? 這是一個三面陣列的數學工具軟件
?? M
?? 第 1 頁 / 共 2 頁
字號:
% Tucker3InclBoot.m
% program to interactively carry out all steps in a tucker3 analysis
%
% Input: X = full data set as matrix with frontal slabs next to each other');
%			no missings allowed!
% during program, the matrix X is replaced by Xprep (i.e., the preprocessed version of X)
disp('  ');
disp('  ');
disp('  ');
disp(' WELCOME to the interactive TUCKER3 analysis program');
disp('  ');
disp(' (written by Henk A.L. Kiers, April 2001) ');
disp('  ');
disp('  ');
disp(' The program works fully interactively.');
disp(' Simply answer the questions, or press the Enter key for the default option.');
disp('  ');
disp(' NOTES: ');
disp(' 1. The program does not handle missing data: '); 
disp('    you should make sure that all missing values are replaced by sensible values');
disp(' 2. The data should be available in the matrix X, which is set up as follows:');
disp('    - rows correspond to A-mode entities');
disp('    - columns correspond to combinations of B- and C-mode entities,');
disp('       with B-mode entities nested within C-mode entities');
disp('   For example, a 2 x 2 x 3 array is given as follows:');
disp('     x_1_1_1  x_1_2_1  x_1_1_2  x_1_2_2  x_1_1_3  x_1_2_3');
disp('     x_2_1_1  x_2_2_1  x_2_1_2  x_2_2_2  x_2_1_3  x_2_2_3');
disp(' 3. The program may change matrix X; keep a copy of X !');
disp(' 4. Tucker3.m works in the workspace, and makes (and hence overwrites) many matrices;');
disp('     you are advised to BACKUP the contents of your workspace before analysis with Tucker3.m ');
disp(' 5. You can specify labels for A- B- and C- mode entities (in laba, labb, labc);');
disp('     otherwise standard labels will be made by the program, as laba, labb, labc.');
disp(' 6. All matrix output is tab-delimited, and can hence easily be converted to tables, after copying to Word');
disp(' 7. Faster analysis (for advanced users) can be carried out using splithalft3.m');
disp(' Note: If you are interested in doing a bootstrap analysis, it is assumed that the A-mode is the mode from which you want to resampling');
disp(' If this is not the case, first reorder your data');
disp('  ');
disp(' START of program ');
disp('  ');

conv=1e-6;
cc=0;
while cc==0
  n=input(' Specify the number of A-mode entities ');
  m=input(' Specify the number of B-mode entities ');
  p=input(' Specify the number of C-mode entities ');
  if isempty(n)|isempty(m)|isempty(p),cc=0;disp(' Please specify ALL sizes! ');
  else,cc=1;end;
end;

if exist('X')==0,disp(' Error: Data not available on X');return;end;
Xprep=X;
[rr,cc]=size(Xprep);
if rr~=n | cc~=m*p, disp(' Error: array size does not agree with input data matrix X');
   return;
end;
if exist('laba')==0,laba=num2str([1:n]');aa=length(laba(1,:));laba(:,2:aa+1)=laba;laba(:,1)='A';end
if exist('labb')==0,labb=num2str([1:m]');aa=length(labb(1,:));labb(:,2:aa+1)=labb;labb(:,1)='B';end
if exist('labc')==0,labc=num2str([1:p]');aa=length(labc(1,:));labc(:,2:aa+1)=labc;labc(:,1)='C';end
if length(laba(:,1))~=n,disp(' Error: vector of labels for A (laba) has incorrect size');return;end;
if length(labb(:,1))~=m,disp(' Error: vector of labels for B (labb) has incorrect size');return;end;
if length(labc(:,1))~=p,disp(' Error: vector of labels for C (labc) has incorrect size');return;end;



disp('  ');
cc=input(' To see anova results, specify "1":  ');
if isempty(cc);cc=0;end;
if cc==1
   disp('  ');
   threewayanova(Xprep,n,m,p);
   disp('  ');
end;

% Centering
disp('  ');
disp(' How do you want to CENTER your array ?');
disp(' 1= across A-mode ');
disp(' 2= across B-mode ');
disp(' 3= across C-mode ');
disp(' 12= across A-mode and across B-mode ');
disp(' 13= across A-mode and across C-mode ');
disp(' 23= across B-mode and across C-mode ');
cc=input(' Specify your choice:  ');
if isempty(cc);cc=0;end;
centopt=cc;
disp('  ');
if cc==1 | cc==12 | cc==13
   Xprep=cent3(Xprep,n,m,p,1);
   disp(' Data have been centered across A-mode');
end;
if cc==2 | cc==12 | cc==23
   Xprep=cent3(Xprep,n,m,p,2);
   disp(' Data have been centered across B-mode');
end;
if cc==3 | cc==13 | cc==23
   Xprep=cent3(Xprep,n,m,p,3);
   disp(' Data have been centered across C-mode');
end;

% Normalizing 
disp('  ');
disp(' How do you want to NORMALIZE your array ?');
disp(' 1= within A-mode ');
disp(' 2= within B-mode ');
disp(' 3= within C-mode ');
cc=input(' Specify your choice:  ');
if isempty(cc);cc=0;end;
normopt=cc;
disp('  ');
if cc==1 
   Xprep=norm3(Xprep,n,m,p,1);
   disp(' Data have been normalized within A-mode');
end;
if cc==2 
   Xprep=norm3(Xprep,n,m,p,2);
   disp(' Data have been normalized within B-mode');
end;
if cc==3
   Xprep=norm3(Xprep,n,m,p,3);
   disp(' Data have been normalized within C-mode');
end;

disp('  ');
disp(' NOTE: ');
disp('   The preprocessed data are now available in Xprep');
disp('   Xprep can be used for analyses outside the Tucker3.m program');
disp('  ');

disp('  ');
cc=input(' To see PCA of MEAN, specify "1":  ');
if isempty(cc);cc=0;end;
while cc==1
   [Y,ev,A1,B1,C1,A2,B2,C2]=pcamean(Xprep,n,m,p);
   disp('  ');
   disp(' To study/plot the output you can now temporarily leave the interactive program');
   disp('   to get back, type "return"');
   ccc=input(' If you want to temporarily leave the program, specify "1": '); 
   if isempty(ccc);ccc=0;end;
   if ccc==1,
      disp('  ');
      disp(' You leave the interactive program and can manipulate/study current matrices. ');
      disp(' You may use writescr.m, or use any scatter-plotting routine you like')
      disp(' (e.g., scatter, etc.,or "plotje.m").');
      disp(' If you want to make plots, you may use labels in laba, labb, labc.');
      disp('  ');
      disp(' To return to interactive program, type "return"');
      keyboard;
   end;
   disp('  ');
   ccc=input(' If you want another PCA of mean analysis, specify "1":  ');
   if isempty(ccc);ccc=0;end;
   if ccc~=1,cc=2;end;
end;

disp(' ');
disp(' You are now about to do a Tucker3 analysis.');
disp(' You have to specify the dimensionalities to use.');
disp(' To search these, you are advised to first run PCASUP analyses.');
disp(' (PCASUP analyses are PCA''s of supermatrices with slices of the 3way array next to each other;')
disp('  thus 3 supermatrices are analyed by PCA, and for each we get a component matrix, and eigenvalues;');
disp('  the eigenvalues may give an indication as to the required number of components for each mode.)');
disp('  The results can next be used to find useful dimensionalities by the generalized scree test ');
disp('  (see Timmerman & Kiers, 2000, Kiers & der Kinderen, 2003)');
disp(' ');
cc=input(' If you want to do the PCASUPs for Choosing your dimensionality , specify "1":   ');
if isempty(cc);cc=0;end;
disp('  ');
if cc==1
   disp(' For the generalized scree test it is needed to indicate the maximum number of dimensions for each mode you want to study');
   maxa=input(' Up to how many A-mode components do you want to use?  ');
   maxb=input(' Up to how many B-mode components do you want to use?  ');
   maxc=input(' Up to how many C-mode components do you want to use?  ');
   out=tuckrunsApproxFit(Xprep,n,m,p,maxa,maxb,maxc);
   disp('  ');
   disp('           numbers of components  fit    total number');
   disp('            A       B       C     perc.  of components');
   disp('  ');
   writescr(out,'6.2');
   disp('  ');
   disp(' This info remains available in matrix out ');
   disp('  ');
   disp(' Suggestion based on Convex Hull procedure (Ceulemans & Kiers, 2006) ' );
   disp(' -- programmed by Urbano Lorenzo Seva, 2007 --' );
   DimSelector(out);
   disp(' ');
   disp(' ');
   disp(' Figure 1 now gives fit values of all solutions plotted against P+Q+R');
   disp(' Figure 2 gives fit values of all solutions plotted against number of free parameters');
   tucker3dimensionalityplot;
   disp(' ');
end;


ccc=input(' If you want to temporarily leave the program, specify "1": '); 
if isempty(ccc);ccc=0;end;
if ccc==1,
   disp('  ');
   disp(' You leave the interactive program and can manipulate/study current matrices ');
   disp(' To return to interactive program, type "return"');
   keyboard;
end;

disp('  ');
disp(' You can now do a TUCKER3 ANALYSIS');
disp('  ');
cc=0;
while cc==0
  r1=input(' How many A-mode components do you want to use?  ');
  r2=input(' How many B-mode components do you want to use?  ');
  r3=input(' How many C-mode components do you want to use?  ');
  if isempty(r1)|isempty(r2)|isempty(r3),cc=0;disp(' Please specify ALL numbers of components! ');
  else,cc=1,end;
end;
disp(' ');
disp(' By default, only a rationally started analysis run will be carried out.');
disp(' To decrease the chance of missing the optimal solution, you may use');
disp(' additional, randomly started runs.');
addanal=input(' If you want additional runs, specify how many (e.g., 4):  ');
if isempty(addanal),addanal=0;end;
disp('  ');
[A,B,C,H,f,iter,fp,La,Lb,Lc]=tuck3abk(Xprep,n,m,p,r1,r2,r3,0,conv);
func=ones(1+addanal,1);
func=fp;
for run=1:addanal
   disp('  ');
   fprintf(' Run no. %g \n',run+1);
   disp('  ');
   [Ar,Br,Cr,Hr,fr,iterr,fpr,Lar,Lbr,Lcr]=tuck3abk(Xprep,n,m,p,r1,r2,r3,1,conv);
   func(run+1)=fpr;
   if fpr>1.0001*fp % if fit more than .01% better is found, replace solution
      A=Ar;B=Br;C=Cr;H=Hr;f=fr;iter=iterr;fp=fpr;La=Lar;Lb=Lbr;Lc=Lcr;
   end;
   disp('  ');
end;
disp('  ');
if addanal>=1
   disp('  ');
   disp(' Fit % values from all runs:');
   disp(' ');
   writescr(func','6.2');
   disp('  ');
end;
fprintf(' Tucker3 analysis with %gx%gx%g components gave a fit of %4.2f %% \n',r1,r2,r3,fp); 
disp('  ');
disp('  ');
disp('  ');

disp('  ');
ccc=input(' If you want to temporarily leave the program, specify "1": '); 
if isempty(ccc);ccc=0;end;
if ccc==1,
   disp('  ');
   disp(' You leave the interactive program and can manipulate/study current matrices ');
   disp(' To return to interactive program, type "return"');
   keyboard;
end;
disp('  ');


% Prepare plotting matrices
disp('  ');
disp(' PLOTTING ');
disp('  ');
disp(' No special plotting routines are incorporated, but you can use');
disp(' any scatter-plotting routine you like (e.g., scatter, etc.,or "plotje.m")');
disp('  ');
disp(' If you want to make plots of entities of one mode, you can use:');
disp(' matrices Aplot, Bplot, or Cplot, and use labels in laba, labb, labc.');
Aplot=A*diag(diag(La).^.5);
Bplot=B*diag(diag(Lb).^.5);
Cplot=C*diag(diag(Lc).^.5);
disp('  ');
disp(' If you want to make plots of entities of two modes, ');
disp(' with the third projected in it as axes, you can use the coordinates in:');
disp(' BAplot with those in C,or ACplot with those in B, or CBplot with those in A');
disp(' You will still have to make proper labels for these combined mode plots ');
Aplot=A*diag(diag(La).^.5);
Bplot=B*diag(diag(Lb).^.5);
Cplot=C*diag(diag(Lc).^.5);
Ha=H;Hb=permnew(Ha,r1,r2,r3);Hc=permnew(Hb,r2,r3,r1);
CBplot=kron(C,B)*Ha';
ACplot=kron(A,C)*Hb';
BAplot=kron(B,A)*Hc';
disp('  ');

disp('  ');
ccc=input(' If you want to temporarily leave the program, specify "1": '); 
if isempty(ccc);ccc=0;end;
if ccc==1,
   disp('  ');
   disp(' You leave the interactive program and can manipulate/study current matrices ');
   disp(' To return to interactive program, type "return"');
   keyboard;
end;
disp('  ');

disp(' It is sometimes useful to RENORMALIZE components, e.g., such that')
disp(' the influence of the different A-mode components on the core is equalized');
disp(' This will usually lead to correlated components in that mode, and ');
disp(' to a more simple structure for the components in the OTHER modes, ');
disp(' ');

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av一本久道久久综合久久鬼色| 欧美日韩aaaaa| 欧美撒尿777hd撒尿| 精品国产成人系列| 亚洲在线视频免费观看| 国产激情精品久久久第一区二区 | 久久99精品久久久久久动态图 | 亚洲免费毛片网站| 国产精品中文字幕欧美| 欧美丰满美乳xxx高潮www| 国产精品久久久久久久久免费樱桃| 男女激情视频一区| 欧美在线观看一区| 亚洲欧美另类在线| 成人免费av在线| 国产欧美一二三区| 久久se精品一区二区| 欧美剧情片在线观看| 亚洲男人的天堂在线观看| 国产不卡视频一区| 久久久精品欧美丰满| 日韩成人免费在线| 欧美精品日韩综合在线| 亚洲一区二区精品视频| 91高清在线观看| 亚洲美女视频一区| 色综合久久66| 亚洲综合自拍偷拍| 欧美伊人久久久久久午夜久久久久| 日韩理论片在线| 91久久人澡人人添人人爽欧美| 国产精品国产三级国产aⅴ无密码| 国产大陆精品国产| 国产亚洲成年网址在线观看| 国产一区激情在线| 国产片一区二区三区| 成人黄色在线视频| 亚洲手机成人高清视频| 欧洲av一区二区嗯嗯嗯啊| 亚洲综合色成人| 欧美久久一二区| 日本欧美一区二区在线观看| 日韩欧美国产综合一区 | 94色蜜桃网一区二区三区| 亚洲少妇最新在线视频| 91国偷自产一区二区使用方法| 亚洲制服丝袜av| 日韩欧美在线影院| 国产精品亚洲第一区在线暖暖韩国| 国产清纯美女被跳蛋高潮一区二区久久w| 国产成人精品免费视频网站| 亚洲色图欧洲色图| 欧美日韩国产综合视频在线观看| 日韩黄色片在线观看| 久久久久久毛片| 不卡视频一二三| 亚洲va国产va欧美va观看| 欧美成人一区二区三区在线观看| 国产精品18久久久久久久网站| 亚洲人精品一区| 91麻豆精品国产91久久久使用方法| 国产综合久久久久久久久久久久| 国产精品伦一区二区三级视频| 在线视频你懂得一区| 久久国产精品露脸对白| 国产精品久久久久久久久图文区 | 色久优优欧美色久优优| 蜜臀久久99精品久久久画质超高清 | 成人免费视频app| 亚洲成人在线免费| 国产色产综合产在线视频| 在线免费观看不卡av| 国产综合色精品一区二区三区| 亚洲美女偷拍久久| 国产欧美精品国产国产专区| 欧美日韩亚洲综合在线| 国产91清纯白嫩初高中在线观看 | 国产精品每日更新| 日韩欧美中文字幕一区| 一本在线高清不卡dvd| 国产一区二区0| 亚洲资源在线观看| 国产亚洲欧美在线| 91精品国模一区二区三区| 99久久综合国产精品| 久久精品久久精品| 亚洲电影一级黄| 国产精品久久久久7777按摩| 日韩精品在线一区| 欧美日韩精品三区| 91丨国产丨九色丨pron| 国内一区二区视频| 日韩av不卡一区二区| 一区二区三区精品| 国产精品乱码一区二区三区软件| 日韩精品一区二区三区swag| 欧美精品一二三区| 91久久精品国产91性色tv| 成人激情av网| 成人中文字幕电影| 国产精品88av| 国产精品亚洲а∨天堂免在线| 九九热在线视频观看这里只有精品| 日日夜夜一区二区| 亚洲国产日韩一区二区| 一区二区三区精品久久久| 亚洲视频一二三区| 一区二区在线电影| 亚洲精品免费看| 亚洲天堂精品在线观看| 国产精品素人视频| 国产精品久久久久久亚洲伦 | 免费精品视频在线| 日精品一区二区三区| 亚洲 欧美综合在线网络| 亚洲国产日韩在线一区模特| 亚洲成人动漫精品| 日本va欧美va精品发布| 日本不卡一区二区三区高清视频| 丝袜美腿亚洲一区二区图片| 婷婷国产在线综合| 另类的小说在线视频另类成人小视频在线| 日韩—二三区免费观看av| 老司机精品视频线观看86 | 久久久久久亚洲综合影院红桃| 久久久亚洲午夜电影| 国产欧美日韩精品一区| 中文字幕制服丝袜成人av| 亚洲欧美电影一区二区| 亚洲成人手机在线| 欧美bbbbb| 大白屁股一区二区视频| 91视视频在线直接观看在线看网页在线看| 91社区在线播放| 在线观看日韩国产| 91精品国产色综合久久久蜜香臀| 91麻豆精品国产91久久久| 精品国产乱码久久| 亚洲欧美日韩综合aⅴ视频| 亚洲国产成人91porn| 久久99精品一区二区三区| 成人黄动漫网站免费app| 欧美色图一区二区三区| 欧美成人高清电影在线| 1024精品合集| 欧美aaa在线| 99视频热这里只有精品免费| 欧美日产国产精品| 欧美极品少妇xxxxⅹ高跟鞋| 亚洲午夜电影网| 国产乱人伦精品一区二区在线观看| 99久久精品免费看| 精品国内片67194| 亚洲女同一区二区| 精品亚洲成a人在线观看| 99re成人在线| 精品三级av在线| 亚洲欧洲中文日韩久久av乱码| 蜜桃视频一区二区| 日本久久电影网| 久久综合成人精品亚洲另类欧美| 亚洲一二三区视频在线观看| 国产一区二区三区| 欧美军同video69gay| 国产精品午夜免费| 久久国产视频网| 欧美亚洲国产一区二区三区| 欧美国产日韩亚洲一区| 日韩高清不卡在线| 在线免费观看不卡av| 国产精品成人免费精品自在线观看| 男女激情视频一区| 欧美午夜精品久久久久久孕妇| 国产精品亲子乱子伦xxxx裸| 麻豆精品视频在线| 欧美视频一区二区三区| 亚洲欧美一区二区不卡| 国产精品一区二区黑丝| 日韩欧美二区三区| 亚洲成av人综合在线观看| 91年精品国产| 国产精品进线69影院| 国产乱一区二区| 精品国产精品一区二区夜夜嗨| 日本成人在线不卡视频| 欧美另类videos死尸| 亚洲午夜久久久| 欧美性欧美巨大黑白大战| 最新日韩在线视频| 激情文学综合网| 欧美日韩国产在线播放网站| 亚洲精品成a人| 91啦中文在线观看| 亚洲天堂a在线| 91色porny蝌蚪| 一区二区三区视频在线看| 91行情网站电视在线观看高清版| 亚洲自拍偷拍欧美| 欧美日韩在线播放三区| 午夜精品aaa|