100% Guaranteed Results


SAS – Chapter 4: Random Number Generation and Plotting
$ 29.99
Category:

Description

5/5 – (1 vote)

1. Using the DO Loop and Creating Random Data Sets
a. Navigate to the SAS RAND function page and choose a few functions to practice generating random numbers. Create a data table with at least two variables of random numbers and at least 10 observations. Be sure to use a random seed of your choice.
http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.ht m#p0fpeei0opypg8n1b06qe4r040lv.htm
b. Create a new data table with the same random variables that you specified from the previous step. Create a variable called Class that groups the first five observations into class 1 and the second five into class 2. Drop the nested DO loop index variable from the data table and add a sequence from 1 to 10. Print the data upon completion.
c. Run the SAS code below (SP4R04e02.sas). What do you notice?
data test; do i=1 to 2; output; end; run;
proc print data=test; run; data test; set test; do j=1 to 5; output; end; run;
proc print data=test; run;

Reviews

There are no reviews yet.

Be the first to review “SAS – Chapter 4: Random Number Generation and Plotting”

Your email address will not be published. Required fields are marked *

Related products