3-factor anova

28 vues (au cours des 30 derniers jours)
Elzbieta
Elzbieta le 5 Juil 2024
Modifié(e) : Edward le 5 Oct 2024
Hello,
I would like to ask how to perform 3-factor anova (2-level noise, 3-level device, 9-level activity) on ECG signal data as well how to prepare related charts?

Réponses (2)

Aditya
Aditya le 5 Juil 2024
Modifié(e) : Aditya le 5 Juil 2024
Hi Elzbieta,
Please refer to the example mentioned in the anovan documentation, as the anovan function can calculate N-way ANOVA:
Example:
  • Three-Way ANOVA
  • Multiple Comparisons for Three-Way ANOVA
For plotting, you can explore the interactionplot and main_effects_plot functions in MATLAB. Here are the documentation links for these functions:
These resources will guide you through performing the analysis and visualizing the results.
I hope this helps!

William Rose
William Rose le 19 Juil 2024
I like the answer from @Aditya, because it gives links to the documentation for N-way ANOVA.
I interpret your original posting to mean that you are anayzing EKGs that are recorded with 2 levels of noise, 3 different devices, and nine "levels of activity". I don't know what "levels of activity" means. Does it refer to different exercise intensity levels, from no activity (level 1) to maximal activity (level 9)?
To do ANOVA on EKGs, you need to compute one number from each EKG signal. What is the one number which you will compute from each EKG? For example, you could compute a heart rate (HR) estimate from each EKG. Or you could estimate the HR variability from each EKG signal - and there are many measures of heart rate variability to choose from. Or you could compute some other quantity.
Consider the hypotheses you are testing with a 3-factor ANOVA. For purposes of illustration, I will assume that you are computing an estimate of HR from each EKG signal. For the 3-factor ANOVA, the first hypothesis tested is
H0 The mean HR is the same for all levels and combinations of of noise, device, and activity.
H1 The mean HR is not the same for all levels and combinations of noise, device, and activity.
The main effect hypotheses tested in the three factor ANOVA are
H0a The mean HR is the same for both levels of noise
H1a The mean HRs of the two noise levels are different.
H0b The mean HR is the same for all three deivces.
H1b The mean HR is not the same for all three devices.
H0c The mean HR is the same for all 9 activity levels.
H1c The mean HR is not the same for all 9 activity levels.
Three hypotheses about interactions between factors will also be tested. You must take considerable care to communicate the ANOVA results clearly and correctly to your audience. You may want to evluate you r overall research goals and consider carefully whether a three-way ANOVA is the best approach to meet your goals. See here for reasons to avoid three-way ANOVA.
I suspect that the third factor, activity, is naturally ordered, from low to high. If so, you may want to include regression analysis instead of ANOVA for the activity factor. ANOVA treats the 9 different activity levels like 9 different devices, or 9 different drugs, which have no intrinsic order to them, and by doing so, it fails to take into account something significant about the data.
ANOVA makes assumptions about the data. You should check that your data does not deviate a lot from these assumptions. The assumptions are 1. No outliers in the data. 2. Normally distributed data (i.e. the heart rates are normally distributed). 3. Homogeneity of variance (i.e. the variance is the same, or at least not hugely diffrerent, between the different levels of the different factors).
Good luck with your research.
  1 commentaire
Edward
Edward le 4 Oct 2024
Modifié(e) : Edward le 5 Oct 2024
Given the potential ordering of the activity levels, how do you plan to assess whether a regression analysis might be more appropriate than a three-way ANOVA for analyzing the effects of activity on heart rate? geometry dash breeze

Connectez-vous pour commenter.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by