Repeated measures analysis with 2 predictors
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
the cyclist
el 30 de Jun. de 2023
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.
Respuestas (0)
Ver también
Categorías
Más información sobre Time Series Events en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!