How do I do SEM Error Bars?

104 visualizaciones (últimos 30 días)
Delany MacDonald
Delany MacDonald el 1 de Abr. de 2016
Comentada: Star Strider el 7 de Nov. de 2019
I know how to find the standard deviation with error bars but how do I find the standard error mean of variables?

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by