Chi Square, OR, RR (associations between categorical variables) Problem 3 The da
ID: 3323458 • Letter: C
Question
Chi Square, OR, RR
(associations between categorical variables)
Problem 3
The data file stenosis_smokers.sav describes a study of 215 smokers and non-smokers. The participants are evaluated for
stenosis (narrowing of coronary arteries). Use SPSS to perform the following analyses (paste in the relevant tables:
State your null and alternative hypotheses for a chi square analysis
Organize the data into a contingency table (exposure/smoking in the rows, outcome/stenosis in the columns). Calculate the expected values Calculate the percentages by rows
Paste a table with your results below
Report the chi square value
Report the p value for this chi square
Do you reject your null hypothesis?
Calculate the odds ratio and relative risk for smoking and stenosis.
Paste a table with your results below
Report the relative risk for smoking and stenosis
Report the 95% CI for relative risk
State your null hypothesis for relative risk. (hint what would the expected value for the Relative Risk or Odds Ratio equal if there is no association between
Do you reject your null hypothesis?
Report the odds ratio for smoking and stenosis
State your null hypothesis for odds ratio
Do you reject your null hypothesis?
This information was taken from SPSS File stenosis_file
smoke disease Gender
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 1.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 1.00 .00
1.00 2.00 .00
1.00 1.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 1.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 2.00 .00
1.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 1.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 2.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
2.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
1.00 1.00 .00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
2.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
1.00 2.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
2.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
1.00 1.00 1.00
Variable view
smoke Numeric 9 2 smoking status {1.00, yes}... None 8 Right Nominal Input
disease Numeric 9 2 presence of aortic stenosis {1.00, yes}... None 8 Right Nominal Input
Gender Numeric 9 2 gender {.00, Female}... None 8 Right Nominal Input
Explanation / Answer
#include <stdio.h>
struct student
{
char name[50];
int Age;
char Country_Name[20];
char City_Name[20];
float Height;
float Weight;
char Education[20];
} s[8];
void getAverage(float,float);
void Increase(float,float);
int main()
{
int i;
printf("Enter information of students: ");
for(i=0; i<8; ++i)
{
printf("Enter name: ");
scanf("%s",s[i].name);
printf("Enter Age: ");
scanf("%d",&s[i].Age);
printf("Enter Country Name: ");
scanf("%s",s[i].Country_Name);
printf("Enter the City Name: ");
scanf("%s",s[i].City_Name);
printf("Enter the Height: ");
scanf("%f",&s[i].Height);
printf("Enter the Weight: ");
scanf("%f",&s[i].Weight);
printf("Enter the education : ");
scanf("%s",s[i].Education);
printf(" ");
}
printf("Displaying Information: ");
for(i=0; i<8; ++i)
{
printf("Name: ");
puts(s[i].name);
printf("Age: %d ",s[i].Age);
printf("Country Name: ");
puts(s[i].Country_Name);
printf("City Name: ");
puts(s[i].City_Name);
printf("Height: %.1f ",s[i].Height);
printf("Weight: %.1f ",s[i].Weight);
printf("Education: ");
puts(s[i].Education);
printf(" ");
}
getAverage(s[i].Height,s[i].Weight);
Increase(s[0].Height,s[0].Weight);
return 0;
}
void getAverage(float x,float y)
{
int i,total=0,sum=0;
for(i=0;i<8;i++)
{
total += s[i].Weight;
x = total/8;
sum += s[i].Height;
y = sum/8;
}
printf("The average Weight is %.2f ",x);
printf("The average Height is %.2f ",y);
}
void Increase(float x1,float y1)
{
x1 =(s[0].Weight/5)+(s[0].Weight);
y1 =(s[0].Height/5)+(s[0].Height);
printf("The new weight of person 1: %.2f ",x1);
printf("The new height of person 1: %.2f",y1);
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.