Question: Hello can you please help me with the questions shown below regarding R Script? 1.) Recode GSS$excellenthealth so that 0 and 9 are missing, and
Hello can you please help me with the questions shown below regarding R Script?
1.)


Recode GSS$excellenthealth so that 0 and 9 are missing, and 2 to 4 are zero GSS$excellenthealth[GSS$excellenthealth ==0]= __ BLANK 1_ GSS$excellenthealth[GSS$excellenthealth ==9]= __ BLANK 1_ GSS$excellenthealth[GSS$excellenthealth = =2]= __ BLANK 2_. GSS$excellenthealth[GSS$excellenthealth ==3]= __ BLANK 2__ GSS$excellenthealth[GSS$excellenthealth = =4]= __ BLANK 2_ BLANK 1 = 0; BLANK 2 = NA BLANK 1 = -9; BLANK 2 = 0 BLANK 1 = NA; BLANK 2 = 0 BLANK 1 = 0; BLANK 2 = -9The data type used in R for categorical variables is what? 6) factor Q character
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
