A pharmaceutical company is developing a new drug for helpin
A pharmaceutical company is developing a new drug for helping migraine patients. Patients were studied. The drug was administered when a patient is under severe migraine attack and they were asked to rank the level of pain after one hour.
Pain Level
Frequency
Percentage
Severe
21
?
Moderate
37
?
Mild
59
?
Nonexistent
3
?
What are the observational unit and the variable of the study? The observational unit is the patient
Make a barplot using R to represent the data with frequency.
Calculate the percentage for each group and make another barplot showing the percentages of patients in each group.
| Pain Level | Frequency | Percentage | 
| Severe | 21 | ? | 
| Moderate | 37 | ? | 
| Mild | 59 | ? | 
| Nonexistent | 3 | ? | 
Solution
I dont have R package.
Percentages of each group is
| Pain level | frequency | percentage | 
| Severe | 21 | 17.5% | 
| Moderate | 37 | 31% | 
| Mild | 59 | 49% | 
| Non existent | 3 | 2.5% | 
| Total | 120 | 100% | 

