Question: What is an efficient way to find counts for a category of a categorical variable, such as M for Gender? a . Replace each M

What is an efficient way to find counts for a category of a categorical variable, such as M for Gender?
a. Replace each M with a 1 and all other values with a 0, then sum the 0s and 1s
b. Replace each M with a 1 and all other values with a 0, then average the 0s and 1s
c. Replace each M with a 0 and all other values with a 1, then sum the 0s and 1s
d. Replace each M with a 0 and all other values with a 1, then average the 0s and 1s

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!