nerdexam
SAS_Institute

A00-280 · Question #69

This question will ask you to provide a line of missing code. Given the dataset RAWB P that is sorted by SUBJECT TEST WEEK: `` SUBJECT WEEK TEST VALUE 101 0 DBP 160 101 1 DBP 140 101 2 DBP 130 101 3…

The correct answer is B. pct_chg = ((value - baseline) /baseline)*100. See the full explanation below for the reasoning.

Question

This question will ask you to provide a line of missing code. Given the dataset RAWB P that is sorted by SUBJECT TEST WEEK:
SUBJECT WEEK TEST VALUE
101 0 DBP 160
101 1 DBP 140
101 2 DBP 130
101 3 DBP 120
101 0 SBP 90
101 1 SBP 87
101 2 SBP 85
101 3 SBP 80
The following SAS program is submitted:
data bp;
 set rawbp;
 by subject test week;
 retain baseline;
 if first.test then baseline = .;
 if week > 0 then baseline = value;
 else if week > 0 then do;
 <insert code here>
 end;
run;
Which statement must be added to the program to calculate relative change in percent (percent change) from baseline?

Options

  • Apct_chg = ((baseline - value) /baseline)*100;
  • Bpct_chg = ((value - baseline) /baseline)*100;
  • Cpct_chg = ((baseline - value) /value)*100;
  • Dpct_chg = ((value - baseline) /value)*100;

How the community answered

(69 responses)
  • A
    6% (4)
  • B
    78% (54)
  • C
    3% (2)
  • D
    13% (9)

Community Discussion

No community discussion yet for this question.

Full A00-280 Practice