How do I do SEM Error Bars?

조회 수: 104 (최근 30일)
Delany MacDonald
Delany MacDonald 2016년 4월 1일
댓글: Star Strider 2019년 11월 7일
I know how to find the standard deviation with error bars but how do I find the standard error mean of variables?

채택된 답변

Star Strider
Star Strider 2016년 4월 1일
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
Vlatko Milic
Vlatko Milic 2019년 11월 7일
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 2019년 11월 7일
My code calculates ±95% confidence limits, so it produces both limits.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by