Question: Must write code in R. Use ANOVA to determine if a person's attitude (happy, sad, angry) has ANY EFFECT on their x mood ratio .
Must write code in R. Use ANOVA to determine if a person's attitude(happy, sad, angry) has ANY EFFECT on their x mood ratio.
This is just my fake data. I just want to know how a factor that is string ( ex: "happy", "sad", "angry" not a numbers) that pair with a factor that is numbers (ex: 0.2, .5, .4) in R.
Maybe just use my fake small size example to do ANOVA. Also, I need an example statement of Ho and H from my fake data too. My real data is much larger size and completely different table, so please use my fake data as an example.
Fake Data:
| name | last_name | attitude | x1 | x2 | x3 | x_mood_ratio | ||
| 1 | ama | c | sad | 15 | 8 | 21 | 0.34 | |
| 2 | bma | a | happy | 8 | 11 | 12 | 0.79 | |
| 3 | dma | c | sad | 9 | 13 | 7 | 0.10 | |
| 4 | ema | b | angry | 7 | 10 | 6 | 0.0 | |
| 5 | hma | b | happy | 16 | 12 | 2 | 0.17 | |
| 6 | fma | e | happy | 10 | 7 | 4 | 0.0 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
