MATLAB: Operator notation for fitlme function

fitlmeMATLAB

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

Best Answer

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.
Related Question