Quiz 3-19.docx

Quiz 3-19.docx - Lec 3-9 Submit a PROC CONTENTS step to...

  • No School
  • AA 1
  • 22
  • 100% (1) 1 out of 1 people found this document helpful

This preview shows page 1 - 4 out of 22 pages.

Lec 3-9 Submit a PROC CONTENTS step to list all the SAS data sets in the mapssas library. Do not display the descriptor portions of the individual data set. How many of data sets in the mapssas library? Code: proc contents data =mapssas._all_; run ; Lec3-10 How many variables in the data set mapssas.world? Code: proc contents data =mapssas.world; run ; Lec 6-7 Choose the correct answer in the blank:  The DO UNTIL statement executes a group of statements repetitively until the condition that you  specify is true. The condition is checked  _after_  each iteration of the loop. Lec 6-8 Choose the correct answer in the blank:  The DO WHILE statement executes a group of statements repetitively as long as the condition that  you specify remains true. The condition is checked  __before__  each iteration of the loop. Lec 7-4 Beginning programmers may think that there is no difference between using the WHERE statement  and the IF statement to subset your data set. Knowledgeable programmers know that depending on  the situation, sometimes one statement is more appropriate than the other. For example, if your  subset condition includes automatic variables or new variables created within the DATA step, then  you must use the       statement instead of the       statement. (Hint:  Read   WHERE vs. IF Statements: Knowing the Difference in How and When to Apply.) Lec 9-1 Compute  297.87. (up to 4   decimal place, please) Code: data _null_ ; x= 297.87 ; y=SQRT(x); put y; run ; IF WHERE
Image of page 1
Lec 9-2   Compute log(6) (natural log, base e log). (up to 4 decimal place, please) Code: data _null_ ; x=LOG( 6 ); put x; run ; Lec 9-3 A variable X follows a binomial distribution with the probability of success=.16 and the number of  trials=23. Compute the probability P(X<=4). (up to 4   decimal place, please) Code: data; x=probbnml(.16, 23, 4); put x; run; or data; x=cdf('binomial',4, .16, 23); put x; run; Lec 9-4 Assume that X follows a normal with mean of 2.5 and variance of 0.83. Compute P(X>=2.1). (up to 5 decimal place, please) Code: data _null_ ; z=( 2.1 - 2.5 )/sqrt( .83 ); prob= 1 -probnorm(z); put z prob; run ; Lec 9-5 Assume that X follows a student's   t   distribution with the degrees of freedom of 45. Determine the  value of x such that P(X<=x)=.72. (up to 5 decimal place, please) Code: data ; x=tinv( .72 , 45 ); put x; run ; Lec 9-6 The following SAS program is submitted. What is the value of Char2? data WORK.TEMP; Char1= '0123456789' ;
Image of page 2
Char2= substr( Char1, 3 , 4) ; run ; Answer:2345 Lec 10-9 There are four variables in the data set SASHELP. COMET:   Dose, Length, Rat , and   Sample .   Using  PRINT procedure, compute the total amount of   Length when   Rat =10. (Up to two decimal place) Code: *proc contents data=sashelp.comet; run ; proc sort data =sashelp.comet out =comet; by rat; run ; proc print data =comet n; by rat; sum dose length; run ; Lec 11-4 How many of data type file does MAPS library have?
Image of page 3

Want to read all 22 pages?

Image of page 4

Want to read all 22 pages?

You've reached the end of your free preview.

Want to read all 22 pages?

{[ snackBarMessage ]}

Get FREE access by uploading your study materials

Upload your study materials now and get free access to over 25 million documents.

Upload now for FREE access Or pay now for instant access
Christopher Reinemann
"Before using Course Hero my grade was at 78%. By the end of the semester my grade was at 90%. I could not have done it without all the class material I found."
— Christopher R., University of Rhode Island '15, Course Hero Intern

Ask a question for free

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern