- Missing Data: Make sure that the data is properly preprocessed and doesn't contain any "NaN" values.
- Within-Subjects Design: Try using a table in the "WithinDesign" argument in "fitrm".
- Factor-levels: You can also verify that the factors have multiple levels.
ranova function output contains only NaN
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to calculate a ranova with matlab. I defined the model as follows:
WithinFacs = table(confirmatoryTable_alpha_pre_young.hemifield,confirmatoryTable_alpha_pre_young.setsize,'VariableNames',{'hemifield','setsize'});
rm_alpha_pre = fitrm(confirmatoryTable_alpha_pre_young, 'value ~ hemifield*setsize','WithinDesign', [3:4])
ranova(rm_alpha_pre)
However the output keeps looking like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288313/image.png)
Somebody else already had this problem?
댓글 수: 0
답변 (1개)
Shivansh
2024년 9월 13일
Hi Alenka!
The function "ranova" resulting in only "NaN" values can be due to the following reasons:
Please refer to the following documentation link for more information about "ranova": https://www.mathworks.com/help/stats/repeatedmeasuresmodel.ranova.html.
I hope the above points help in resolving the issue.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Repeated Measures and MANOVA에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!