95% Confidence Interval Calculation in Statistical Analysis [one factor] Scores Plots

Hello,

Would it be possible to know which statistical method is used to calculate the 95% confidence intervals in the PCA and PLS-DA scores plots in the Statistical Analysis [one factor] section of the MetaboAnalyst website, please?

I found another response on this forum for how 95% confidence intervals are calculated for the biomarker analysis (link to it below). Is this the same method for the Statistical Analysis [one factor]?

I am trying to replicate these plots in Python, but I am finding that using either the standard t- or normal- distribution methods gives far smaller confidence regions than for corresponding plots in MetaboAnalyst.

Any help would be much appreciated.

Kind regards,
Jessica

1 Like

You can always find out the underlying R code in our GitHub, see below on computing the data points.

…
groupVar<-var(cbind(pc1[inx],pc2[inx]), na.rm=T);
groupMean<-cbind(mean(pc1[inx], na.rm=T),mean(pc2[inx], na.rm=T));
pts.array[,i] ← ellipse::ellipse(groupVar, centre = groupMean, level = reg, npoints=100); # reg is confidence level
…

The ellipse R package: CRAN: Package ellipse

This topic was automatically closed after 4 days. New replies are no longer allowed.