STAT 4110 Exam 1 (SAS)

Ace your homework & exams now with Quizwiz!

@ is used when there is more than one observation per line in the data file.b T/F

False

The IF statements are generally more efficient than subsetting WHERE statement.

False

The following sample codes (a) and (b) are the same format: T/F (a) INPUT x1 5. x2 5. x3 5. (b) INPUT (x1-x3) (5*3.)

False

When you use IF statement, THEN and/or ELSE statement should be used at all times. T/F

False

This statement instructs SAS to go to the beginning of the step. What is the name of the statement?

Return

FIRSTOBS=n

Tells sas to start reading at observation n

OBS=n

Tells sas to stop reading observations at observation n

DROP=Variable(s)

Tells sas which variables to drop

KEEP=variable(s)

Tells sas which variables to keep

#5 from the program below in INPUT statement means move to column 1 of the fifth line of data. T/F DATA two; INPUT name $15. #5 @21 zip; CARDS; William Smith Box 1234 Raleigh, NC 27607 Fred Jones Rt #1 Zebulon, NC 27597

True

When DO statement is used in a program, it should have END statement to let SAS know the DO loop is done. T/F

True

The DO UNTIL statement executes a group of statements repetitively until the condition that you specify is true. The condition is checked _______ each iteration of the loop.

after

In SAS, _ERROR_, _N_, etc variables are called ________variables.

automatic

The DO WHILE statement executes a group of statements repetitively as long as the condition that you specify remains true. The condition is checked ________ each iteration of the loop.

before

The _ERROR_ variable can be used in expressions or calculations in the ________ step.

data


Related study sets

Ch 25: Assessment of Cardiovascular Function (1)

View Set

1-36 Elements + Sr, Ba, Sn, Pb, I, Xe, Rn

View Set

Google Cloud Certified Professional Cloud Architect - quiz#1

View Set

RETIREMENT PLANS: VARIABLE ANNUITIES (UITS)

View Set

Chapter 2 Financial statements, Taxes, and Cash flow

View Set

Computer Science Principles: Self Check

View Set

Ch 3 - Job-Order Costing: Cost Flows and External Reporting

View Set

Xcel Solutions IN Life Insurance Final Exam

View Set