Question: IN R LANGUAGE 1. A dummy variable can only take the following values: A. 0, 1, -1 B. 0, 1 C. 1 D. There are

IN R LANGUAGE

1. A dummy variable can only take the following values:

A. 0, 1, -1

B. 0, 1

C. 1

D. There are no restrictions on the values of dummyvariables.

2. Which of these storage types would typically be used to storecontinuous variables (click all that apply):

Group of answer choices

- Number (num)

- Character (chr)

- Integer (int)

- Categorical (factor)

3. Which of these variables would typically be stored ascontinuous variables (click all that apply):

Group of answer choices

- Food types on a menu

- Favorite country

- Income in dollars

- Hours of sleep

- Snowfall in inches

- Whether somebody tests positive/reactive ornegative/non-reactive for a disease

4. If I wanted to convert an integer variable into a factorvariable in R, which function would be best to use:

A. as.integer()

B. as.factor()

C. as.character()

D. as.numeric()

5. If I had a list of the best hiking parks across theUnited States and I want to create a variable that indicates whichof these parks are National Parks, what variable type/types wouldbe best suited here:

Group of answer choices

- A categorical variable

- A dummy variable

- A continuous variable

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!