nerdexam
SAS_Institute

A00-280 · Question #44

A Statistical Analysis Plan defines study day as the number of days between the visit date and the date of randomization plus one day. The following SAS program is submitted using a macro from the…

The correct answer is C. %MACRO studyday(rand, visit); &visit. - &rand. + 1 %MEND studyday. See the full explanation below for the reasoning.

Question

A Statistical Analysis Plan defines study day as the number of days between the visit date and the date of randomization plus one day. The following SAS program is submitted using a macro from the project's library: data VS_SD ; set VS ; label rdt = "Randomization Date" ; label vdt = "Visit Date" ; VSDY = %studyday(rdt,vdt) ; run ; How is the STUDYDAY macro defined?

Options

  • A%MACRO studyday(rand, visit); %vdt.?rdt. + 1 %MEND studyday;
  • B%MACRO studyday(rand=, visit=); %vdt. - %rdt. + 1 %MEND studyday;
  • C%MACRO studyday(rand, visit); &visit. - &rand. + 1 %MEND studyday;
  • D%MACRO studyday(visit=, rand=); &visit. - &rand. + 1 %MEND studyday;

How the community answered

(41 responses)
  • A
    12% (5)
  • B
    2% (1)
  • C
    80% (33)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full A00-280 Practice