Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do I convert the categorical variables, gender, over 65 years, and high-cost user, into binary variables. Case Male Over 65 Years Cost High Cost

How do I convert the categorical variables, gender, over 65 years, and high-cost user, into binary variables.

Case Male Over 65 Years Cost High Cost User
1 0 1 $15,908.23 1
2 0 1 $15,854.54 1
3 1 0 $13,835.52 1
4 1 1 $36,924.08 1
5 1 1 $36,375.16 1
6 1 0 $13,204.80 1
7 0 1 $15,979.89 1
8 0 0 $5,212.88 1
9 1 0 $13,440.35 1
10 0 0 $5,282.95 1
11 0 1 $15,039.82 1
12 0 0 $5,917.86 1
13 1 0 $13,189.88 1
14 1 0 $13,306.49 1
15 1 1 $36,664.41 1
16 0 1 $15,360.99 1
17 1 1 $11,736.55 0
18 1 0 $3,237.33 0
19 0 1 $4,945.47 0
20 1 0 $3,872.95 0
21 1 0 $3,502.09 0
22 0 1 $4,730.09 0
23 0 0 $1,078.25 0
24 1 1 $11,644.10 0
25 1 0 $3,212.69 0
26 1 0 $3,389.80 0
27 1 0 $3,710.19 0
28 1 0 $3,446.79 0
29 1 1 $11,638.81 0
30 0 1 $4,442.27 0
31 1 1 $11,958.27 0
32 0 0 $1,603.49 0
33 0 1 $4,568.77 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Cambridge IGCSE And O Level Additional Mathematics Coursebook

Authors: Sue Pemberton

2nd Edition

1108411665, 9781108411660

More Books

Students also viewed these Mathematics questions