We conducted a randomised controlled trial on the effectiveness of music with and without special beats(i.e. Intervention and control groups) on pain ratings (dependent variable). The trial involved participants listening to a sound track for 30 min and chronic pain ratings were gathered before and after listening. I identified pre-treatment pain ratings as a potential covariate. Additionally, age, health and mental health ratings have been correlated with chronic pain, thus I would like to run them as covariates.
I am new to STATA and have managed to successfully run basic tests for descriptive statistics, Chi-squared tests and correlation tests etc. However, I have been getting more and more confused to run the ANOVA test even after searching and reading forums and online tutorials to run the tests. In addition, I have tried to compensate by doing independent T-test and paired T-test. However, these two tests do not allow me to account for covariates.
Details
I am new to STATA and have managed to successfully run basic tests for descriptive statistics, Chi-squared tests and correlation tests etc. However, I have been getting more and more confused to run the ANOVA test even after searching and reading forums and online tutorials to run the tests. In addition, I have tried to compensate by doing independent T-test and paired T-test. However, these two tests do not allow me to account for covariates.
Details
- Groups: A = intervention (n = 28), B = control (n = 21) // Independent variable: Soundtrack_label
- Dependent variable: Pre_post_diff (i.e., The difference between the baseline and post-treatment ratings)(categorical variable)
- Covariate: Pain_pre (categorical variable)
- Other confounding variables as potential covariates: Age (continuous), Health_rating (categorical), MH_rating (categorical)
- Mean change in Pre_post_diff, adjusted for Pain_pre, with a between-subjects factor (Soundtrack_label) and within-subjects factor (time - Pain_pre, Pain_post)
- Another test for the other covariates
- Have I labelled the within-subjects factor correctly? - i.e., Pain_pre, Pain_post
- How can I run a mixed ANOVA design? (Note: I have tried running ANOVA/ANCOVA with dependent variable as "Pre_post_diff", "Model" as Pain_pre and Soundtrack_labels specified as "Main effect", but I am not entirely sure I am running the correct thing)
- If I want to account for the other covariates, do I just continue adding them under the Model?
Comment