microeco icon indicating copy to clipboard operation
microeco copied to clipboard

How to extract the contribution of a variable to the principal component (percentage)

Open milyzhou opened this issue 11 months ago • 1 comments

hi, Chi, I did the PCA, but I do not how to extract the contrib of variable ,such as pca_var$contrib in vegan package. t1 <- trans_beta$new(dataset = dataset, measure = "bray", group = "group") t1$cal_ordination(ordination = "PCA") class(t1$res_ordination)

Thank you!

milyzhou avatar Mar 08 '24 02:03 milyzhou

Hi. Do you mean the loading? Please run View(t1$res_ordination$loading).

ChiLiubio avatar Mar 08 '24 03:03 ChiLiubio