220 Quiz 2

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

A variable that contains all the states in the United States is an example of what type of variable? Nominal Ordinal Binary Discrete

nominal

According to the code below, what will the value of score be for Liam? data grades; input name $ score; datalines; Liam 67 Ava 75 Oliver 99 Charlotte 85 ; run; data lettergrades; set grades; if score >=90 then grade = 'A'; else if score >=80 then grade = 'B'; else if score >=70 then grade = 'C'; else if score >=60 then grade = 'D'; else grade = 'F' run;

D

True or False: In order to have more than one assignment in an if/then statement, you must use a DO Group.

True

A variable that contains the height of students in a class is what type of variable? Continuous Ordinal Binary Nominal

continuous

The variable that contains the number of tigers at a zoo is an example of what type of data? Discrete Continuous Ordinal Nominal

discrete

True or False: The WHERE statement can be used in a DATA step but not in a PROC step.

false

In the following code what is the name of the variable that is created in the case when statement? (The name of the variable that will be in the final output dataset) proc sql; create table court_file as select case when a.return_id ne . then a.return_id else b.form_id end as file_id, from cases as a full join evidence as b on a.return_id=b.form_id; quit; form_id file_id return_id court_file

file_id

A variable contains the values "Low Income", "Medium Income" and "High Income". What type of variable is it? Ordinal Binary Discrete Nominal

ordinal

True or False: Another name for Numeric Variables is Quantitative Variables.

true

True or False: The IF statement can be used in a DATA step but not in a PROC step.

true

True or False: The subtraction test determines whether a variable is quantitative or qualitative.

true


Set pelajaran terkait

AP Euro - The Social Impact of the Industrial Revolution

View Set

Microeconomics Final, Chapter 14 - Oligopoly, Econ: Chapter 17 Oligopoly, Oligopoly APecon Chapter 17, Monopoly Quizlet for Ch. 15, Chapter 13 Natural Monopoly, Chapter 15: Monopoly, Chapter 15 Monopoly, Chapter 14: Firms in Competitive Markets, Chap...

View Set

PHARMACOLOGY, TOXICOLOGY & PHARMACOKINETICS (PINK)

View Set

Microeconomics chapter 16 (Rent, Interest, and Profit)

View Set

INTEGUMENTARY, CIRCULATORY, AND RESPIRATORY SYSTEMS : UNIT 4 TERMS, SELF CHECK/PRACTICE

View Set

Field Training Mission Statements

View Set

Types of individual life insurance (practice quiz questions)

View Set

Ch 6: The Normal Distribution and Other Continuous Distributions

View Set