Question

In: Statistics and Probability

STAT PatientID Age Sex County CardioRisk Height Weight BloodGroup Stroke RegularEx Group Cholesterol1 Cholesterol2 225 58...

STAT
PatientID Age Sex County CardioRisk Height Weight BloodGroup Stroke RegularEx Group Cholesterol1 Cholesterol2
225 58 Male Offaly Low 179.2 103.5 AB N N Placebo 6.1 4.6
226 61 Male Carlow Medium 174.9 63 AB Y N Control 2.2 5.7
227 57 Female Donegal Medium 161.9 76.1 B N Y Control 5.8 5
228 43 Male Offaly High 176 83.7 AB Y N Control 3.6 2.4
229 37 Female Longford Low 157.8 68 B N Y Control 4.9 6
230 29 Male Leitrim Medium 166.1 79.1 A Y Y Placebo 3.5 5.3
231 52 Male Cavan Low 167.6 60.4 A Y Y Placebo 2.9 4
232 47 Female Westmeath Low 167.8 63.6 B N Y Control 4 3.2
233 28 Male Wicklow Low 170.5 67.2 O Y N Control 4.2 4

the commands for these questions using rstudio

Q1

a. Is there a difference in the risk of cardiovascular disease between males and females?

b. Is there a difference in weight between the Control and Placebo groups?

c. Do the data suggest that the new drug reduces cholesterol level compared to the placebo?

Solutions

Expert Solution

Q.a

We perform chi-square test of independence to check this claim.

> d=read.table('data1.csv',header=T,sep=',')
> head(d)
PatientID Age Sex County CardioRisk Height Weight BloodGroup Stroke
1 225 58 Male Offaly Low 178.2 103.5 AB N
2 226 61 Male Carlow Medium 173.9 63.0 AB Y
3 227 57 Female Donegal Medium 160.9 76.1 B N
4 228 43 Male Offaly High 175.0 83.7 AB Y
5 229 37 Female Longford Low 156.8 68.0 B N
6 230 29 Male Leitrim Medium 165.1 79.1 A Y
RegularEx Group Cholesterol1 Cholesterol2
1 N Placebo 6.1 4.6
2 N Control 2.2 5.7
3 Y Control 5.8 5.0
4 N Control 3.6 2.4
5 Y Control 4.9 6.0
6 Y Placebo 3.5 5.3
> attach(d)
The following objects are masked from d (pos = 3):

Age, BloodGroup, CardioRisk, Cholesterol1, Cholesterol2, County,
Group, Height, PatientID, RegularEx, Sex, Stroke, Weight

> t=table(Sex,CardioRisk);t
CardioRisk
Sex High Low Medium
Female 0 2 1
Male 1 3 2
> chisq.test(t)

Pearson's Chi-squared test

data: t
X-squared = 0.6, df = 2, p-value = 0.7408

Warning message:
In chisq.test(t) : Chi-squared approximation may be incorrect

Hypothesis:

H0 : Cardio risk does not depend upon sex

H1 :  Cardio risk does depend upon sex.

Since p-value is greater than 0.05, we accept null hypothesis and conclude that there is no difference in the risk of cardiovascular disease between males and females.

Que.b

> t.test(Weight[which(Group=='Placebo')],Weight[which(Group=='Control')])

Welch Two Sample t-test

data: Weight[which(Group == "Placebo")] and Weight[which(Group == "Control")]
t = 0.83162, df = 2.2847, p-value = 0.4835
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-38.66752 60.13418
sample estimates:
mean of x mean of y
81.00000 70.26667

Since p-value is greater than 0.05, there is no difference in weight between the Control and Placebo groups.

Que.c

> chol1=Cholesterol2[which(Group=='Control')] - Cholesterol1[which(Group=='Control')]
> chol2=Cholesterol2[which(Group=='Placebo')] - Cholesterol1[which(Group=='Placebo')]
> t.test(chol1,chol2,alternative='less')

Welch Two Sample t-test

data: chol1 and chol2
t = -0.16147, df = 4.1791, p-value = 0.4396
alternative hypothesis: true difference in means is less than 0
95 percent confidence interval:
-Inf 2.408399
sample estimates:
mean of x mean of y
0.2666667 0.4666667

Since p-value is greater than 0.05, we conclude that the new drug does not reduces cholesterol level compared to the placebo.


Related Solutions

STAT PatientID Age Sex County CardioRisk Height Weight BloodGroup Stroke RegularEx Group Cholesterol1 Cholesterol2 225 58...
STAT PatientID Age Sex County CardioRisk Height Weight BloodGroup Stroke RegularEx Group Cholesterol1 Cholesterol2 225 58 Male Offaly Low 179.2 103.5 AB N N Placebo 6.1 4.6 226 61 Male Carlow Medium 174.9 63 AB Y N Control 2.2 5.7 227 57 Female Donegal Medium 161.9 76.1 B N Y Control 5.8 5 228 43 Male Offaly High 176 83.7 AB Y N Control 3.6 2.4 229 37 Female Longford Low 157.8 68 B N Y Control 4.9 6 230...
STAT101 PatientID Age Sex County CardioRisk Height Weight BloodGroup Stroke RegularEx Group Cholesterol1 Cholesterol2 225 58...
STAT101 PatientID Age Sex County CardioRisk Height Weight BloodGroup Stroke RegularEx Group Cholesterol1 Cholesterol2 225 58 Male Offaly Low 178.2 103.5 AB N N Placebo 6.1 4.6 226 61 Male Carlow Medium 173.9 63 AB Y N Control 2.2 5.7 227 57 Female Donegal Medium 160.9 76.1 B N Y Control 5.8 5 228 43 Male Offaly High 175 83.7 AB Y N Control 3.6 2.4 229 37 Female Longford Low 156.8 68 B N Y Control 4.9 6 230...
Clinical Note Age     58             Sex           M        Date Chief com
Clinical Note Age     58             Sex           M        Date Chief complaint "Pain on my chest" on and off for the past six months. History of present illness Mr. Solomon is a 58 year old insurance broker who presents tonight in the office following an episode of "chest pain" that he experienced earlier in the day during a golf game. Although he minimizes the severity of the pain and attributes it to being "out of shape," his wife insisted that he see a physician because he...
Client Age: 24 Height: 5’8” Weight: 109 lbs Sex: Female Race: White Family History This client...
Client Age: 24 Height: 5’8” Weight: 109 lbs Sex: Female Race: White Family History This client has no family history of cardiovascular disease. Medical History Present Conditions This woman’s resting heart rate (HR) is 65 bpm, and her resting blood pressure (BP) is 104/62 mmHg. She has a total cholesterol of 220 mg/dl. Her high-density lipoprotein (HDL) level is 45 mg/dl and triglycerides are 120 mg/dl. She recently had a maximal oxygen consumption test that indicates her VO2max is 48...
Patient Height is 5’5 weight:165lbs Age:70 sex: Female Code status: full code ​Braden Score: 22 Admitting...
Patient Height is 5’5 weight:165lbs Age:70 sex: Female Code status: full code ​Braden Score: 22 Admitting Diagnosis: R/O Ketoacidosis Chief Complaint: Weakness, thirsty, lethargy PMHx: NIDDM, Hypothyroidism, Hypertension PSHx: None ​ ​ ​Allergies: ACE Inhibitors, Penicillin Home Medications: Metformin 1000mg po twice daily with meals Levothyroxine 0.12 micrograms po once daily Losartan 100mg po once daily ​​​​​ Glasses: None    Upper partial dentures Vital Signs: 101.3°F, 100 apical pulse , Respirations 28, Blood Pressure 161/90, SaO2 – 94% ,Pain: none Hematology...
You are given a data set containing the height, weight, age, and blood pressure of a...
You are given a data set containing the height, weight, age, and blood pressure of a representative sample of people from a major metropolitan area. Comment on the suitability of using a statistically-based versus a cluster-based outlier detection scheme to identify people with anomalous characteristics for this data set.   
A pregnant female of age 38 years, her weight is 80 Kg and her height is...
A pregnant female of age 38 years, her weight is 80 Kg and her height is 160 cm, was admitted to hospital due to unknown reason high temperature 38 ºC, she had symptoms like night sweat, general weakness, weight loss of unknown reason, also non- itchy spots on her neck. The physician advised her to admit hospital for more investigations as she is pregnant in the 3rd trimester, after blood test, WBC count was 3500 /mm3 and Hb was 9...
Patients Profile Name: Patient James Age: 58 years old Sex: Male Nationality: Filipino Religion: Roman Catholic...
Patients Profile Name: Patient James Age: 58 years old Sex: Male Nationality: Filipino Religion: Roman Catholic Address: Quezon City Marital Status: Single Chief Complaints: “Sumasakit and dibdib ko. Nawawala pero pabalikbalik. Mga anim na buwan na na ganito and nararamdaman ko” (“Pain on my chest” on and off for the past six months”.) Admitting Diagnosis: Angina Pectoris History of Present Illness             Mr. James is a 58 year old insurance broker who seeks consultation to FUMC due to an episode...
Compare the height, weight (in inches), and age for Eagles versus Patriots, using t tests. Provide...
Compare the height, weight (in inches), and age for Eagles versus Patriots, using t tests. Provide the conclusions based on the t tests. Eagles Age Height (") 35 66    28 69    69    23 69    23 69    29 69    23 70    24 70    31 70    28 70    24 70    24 71    24 71    26 71    31 71    23 71    26 71    25 72    25 72    31 72    29 72    33 72    30 72    22 72    28 72    23 72    24 72   ...
Explain the correlation coefficient of determination. a. Height Vs. Weight with an alpha of 0.05/2 b. Weight vs age alfpha 0.01/2
Height Weight Age Shoe Size Waist Size Pocket Change 64 180 39 7 36 18 66 140 31 9 30 125 69 130 31 9 25 151 63 125 36 7 25 11 68 155 24 8 31 151 62 129 42 6 32 214 63 173 30 8 34 138 60 102 26 6 25 67 66 180 33 8 30 285 66 130 31 9 30 50 63 125 32 8 26 32 68 145 33 10 28...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT