How do I do SEM Error Bars?

47 Ansichten (letzte 30 Tage)
Delany MacDonald
Delany MacDonald am 1 Apr. 2016
Kommentiert: Star Strider am 7 Nov. 2019
I know how to find the standard deviation with error bars but how do I find the standard error mean of variables?

Akzeptierte Antwort

Star Strider
Star Strider am 1 Apr. 2016
You have to know the number of observations that went into calculating each standard deviation.
Assuming ‘x’ is a vector:
SEM = std(x)/sqrt(length(x));
  4 Kommentare
Vlatko Milic
Vlatko Milic am 7 Nov. 2019
Hi,
I get two outputs when calculating the standard error according to your example. What can the reason for this be?
Kind regards
Star Strider
Star Strider am 7 Nov. 2019
My code calculates ±95% confidence limits, so it produces both limits.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by