PCA and Hotelling's T^2 for confidence intervall in R

前端 未结 2 1052
抹茶落季
抹茶落季 2020-12-21 11:38

I made a principal component analysis and took the 2 first principal components. I made a chart of my points based on the score of the 2 PC. I would like to add on this grap

2条回答
  •  忘掉有多难
    2020-12-21 11:54

    The pcaMethods package has a function simpleEllipse(x, y, alpha, len) that will do this. Given two uncorrelated data vectors it will return an ellipse, where the axes are scaled based on the variance of each score, and the F statistic.

提交回复
热议问题