필터 지우기
필터 지우기

Repeated measures analysis with 2 predictors

조회 수: 2 (최근 30일)
Fyodor Tatarinov
Fyodor Tatarinov 2023년 6월 30일
댓글: Fyodor Tatarinov 2023년 7월 4일
I have data on measurements Y in 2 types of vegetation in ~20 days with 5 repetitions in each vegetation type. I need to do repeated measure analysis.
I organized the data in the table with columns:
Datenum, Vegetation, No of repetition, Y.
When I do:
rm = fitrm(data,'R ~ Datenum*Vegetation');
ranovatbl = ranova(rm);
I get an apparently wrong table:
SumSq DF MeanSq F pValue pValueGG pValueHF pValueLB
_____ __ ______ ___ ______ ________ ________ ________
(Intercept):Time 0 0 NaN NaN NaN NaN NaN NaN
Vegetation:Time 0 0 NaN NaN NaN NaN NaN NaN
Datenum:Time 0 0 NaN NaN NaN NaN NaN NaN
Vegetation:Datenum:Time 0 0 NaN NaN NaN NaN NaN NaN
Error(Time) 0 0 NaN NaN 0.5 0.5 0.5 0.5
What is the error? Should I add 'WithinDesign' parameter? Which one? When writing 'WithinDesign', data.Datenum it gives the error:
Specified design has 152 points; 1 required.
Thanks
  댓글 수: 2
the cyclist
the cyclist 2023년 6월 30일
It would be vastly easier to help you debug this if you upload the data. You can use the paper clip icon in the INSERT section of the toolbar.
Fyodor Tatarinov
Fyodor Tatarinov 2023년 7월 4일
Original data are in the Sheet1 of attachment. Finally I reorganized the data as in Sheet3 making dates as columns and excluding all rows and columns with missing values. In such configuration it worked

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

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by