⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 erp_per.m

📁 绝对经典,老外制作的功能强大的matlab实现PLS_TOOBOX
💻 M
字号:
function pct=erp_per(s)

% syntax erp_per(s)
% calculates proportion crossblock covar accounted for

[r,c]=size(s);
if (r==c | c>1); %1st case is the normal "s", 2nd case is for section of posthoc "s"
s =diag(s);
pct=(s.^2/sum(s.^2));
else		%have a single vector, as in the output from the permutation test.
   s=s;
   pct=(s.^2/sum(s.^2));
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -