How to get hotelling's t-sqaure for first few components of PCA

hi
I am trying to get t-square values for just two components in a PCA run but i am getting t-square for all components. matlab documentation is saying to calculate t-sqreduced and t-sqdiscareded, but i am unable to understand what does these means. is there any way to directly get t-square for only first component?

Answers (1)

Please read “Hotelling’s T-squared Statistic” part in the “More about” section in the documentation of pca function, it explains about finding T-squared statistic in the reduced space. You can find pca documentation here : https://www.mathworks.com/help/stats/pca.html#bvmb8k3-1

Categories

Products

Release

R2019a

Asked:

on 24 Sep 2019

Answered:

on 12 Mar 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!