필터 지우기
필터 지우기

Operator notation for fitlme function?

조회 수: 1 (최근 30일)
Rebecca Ward
Rebecca Ward 2016년 6월 7일
댓글: Rebecca Ward 2016년 6월 7일
Hi,
Can someone explain the difference between the operators *, | and : in specifying the equation used with the fitlme function?
For example, I have the equation:
lme54=fitlme(tbla5,'alpha_5~Load+Zone+(1+Zone|Term)')
to model alpha_5 as a function of Load, Zone and Term using the data in tbla5.
However, if I replace the | with a : I get different results (and no random effects).
I'd be grateful for any advice concerning the meaning of the different operators as I can't find any information in the manual.
Many thanks, Rebecca

채택된 답변

Steven Lord
Steven Lord 2016년 6월 7일
Take a look at the "More About" section in the documentation for fitlme. This includes a section describing the meaning of each of the pieces of notation you can use to define a formula.
  댓글 수: 1
Rebecca Ward
Rebecca Ward 2016년 6월 7일
Many thanks for pointing me in the right direction - I hadn't spotted this section and it is just what I need.

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

추가 답변 (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