Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

More Books

Students also viewed these Programming questions