ranova function output contains only NaN

1 回表示 (過去 30 日間)
Alenka Schmid
Alenka Schmid 2020 年 4 月 28 日
回答済み: Shivansh 2024 年 9 月 13 日
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:
Somebody else already had this problem?

回答 (1 件)

Shivansh
Shivansh 2024 年 9 月 13 日
Hi Alenka!
The function "ranova" resulting in only "NaN" values can be due to the following reasons:
  1. Missing Data: Make sure that the data is properly preprocessed and doesn't contain any "NaN" values.
  2. Within-Subjects Design: Try using a table in the "WithinDesign" argument in "fitrm".
  3. Factor-levels: You can also verify that the factors have multiple levels.
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.

カテゴリ

Help Center および File ExchangeRepeated Measures and MANOVA についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by