Presentation is loading. Please wait.

Presentation is loading. Please wait.

Data Case Hospitalized? Gender Age Insured Count of Patients 1 Yes

Similar presentations


Presentation on theme: "Data Case Hospitalized? Gender Age Insured Count of Patients 1 Yes"— Presentation transcript:

1 Data Case Hospitalized? Gender Age Insured Count of Patients 1 Yes
Male >65 10 2 <65 20 3 Female 30 4 No 40 5 6 7 60 8 80

2 Step 1: Replace text with 1 and 0.
Case Hospitalized Gender Age Insured 1 2 3 4 5 6 7 8

3 Step 2: Calculate a Contingency Table
Age <65 >65 Total Gender Male 60 30 90 Female 120 210 180 300

4 Step 2: Calculate a Contingency Table
Calculated from ranges using =sumproduct (gender, age, count) Age <65 >65 Total Gender Male 60 30 90 Female 120 210 180 300 Sum of row Sum of Column

5 Step 3: Calculate Expected Counts
Age <65 >65 Total Gender Male 54 36 90 Female 126 84 210 180 120 300

6 Step 4: Calculate Chi-square
p-value 0.123 Chi-square 5.780

7 Step 4: Calculate Chi-square
=CHITEST( actual_range, expected_range ) p-value 0.123 Chi-square 5.780

8 Step 4: Calculate Chi-square
p-value 0.123 Chi-square 5.780 =CHIINV( p-value, degrees_freedom ) =CHIINV(0.123,3) Degrees of freedom is 4 observation minus 1 estimated parameter = 3


Download ppt "Data Case Hospitalized? Gender Age Insured Count of Patients 1 Yes"

Similar presentations


Ads by Google