How do I do SEM Error Bars?

100 vues (au cours des 30 derniers jours)
Delany MacDonald
Delany MacDonald le 1 Avr 2016
Commenté : Star Strider le 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?

Réponse acceptée

Star Strider
Star Strider le 1 Avr 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 commentaires
Vlatko Milic
Vlatko Milic le 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 le 7 Nov 2019
My code calculates ±95% confidence limits, so it produces both limits.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by