14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

350 Display Trees Chapter 11<br />

Constructing Display Trees<br />

Figure 11.6 Example of Sliders and Buttons in a Report Window<br />

This script is similar but uses Global Box instead of Slider Box:<br />

// Global LogNormal<br />

lU=1; lS=2;<br />

NewWindow("LogNormal Density",<br />

VListBox(<br />

gr=GraphBox(FrameSize(500,300),XScale(0.01,3), yScale(0,4),<br />

Double Buffer, XAxis(Show Major Grid), YAxis(Show Major Grid),<br />

YFunction(exp(-(log(x)-log(lU))^2/(2*lS^2))/(lS*x*sqrt(2*pi())),x);<br />

text({1,1},"u ",lU," s ",lS," or type new values below")),<br />

HListBox(Globalbox(lU)),<br />

HListBox(GlobalBox(lS))));

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!