normal_simMacro - dm 'log;clear;output;clear;'; options...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
dm 'log;clear;output;clear;'; options ps=50 ls=75 pageno=1; goptions reset=all border ftext=swiss gunit=cm htext=0.4 htitle=0.5; options mprint symbolgen mlogic; o *********************************************************************; ** **; ** COURSE: STAT 6360 **; ** PURPOSE: Illustrate use of do loops and if then using simulated **; ** data from a normal distribution **; *********************************************************************; * **********************************************************************; ** **; ** NAME: MACRO EXAMPLE **; ** PURPOSE: Simulates 10 different data sets from a normal dist. **; ** For each data set, the standard deviation changes **; ** NOTES: Notice how the data are accumulated in the save set **; ** VARIABLES: **; ** **; **********************************************************************; * %MACRO EXAMPLE; % *create an empty data set to save the results in; data save; set _null_; run; %DO i = 1 %TO 10; data set&i; do j = 1 to 1000; *Example with call rannor instead of normal(), they do about the same
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/06/2011 for the course STAT 4360 taught by Professor Park during the Spring '11 term at UGA.

Page1 / 3

normal_simMacro - dm 'log;clear;output;clear;'; options...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online