/****************************************************************/ /* S A S S A M P L E L I B R A R Y */ /* */ /* NAME: pdlgs.sas */ /* TITLE: Examples for PROC PDLREG: Getting Started */ /* PRODUCT: ETS */ /* SYSTEM: ALL */ /* KEYS: */ /* PROCS: PDLREG */ /* DATA: */ /* */ /* SUPPORT: */ /* REF: SAS/ETS User's GUIDE: PROC PDLREG CHAPTER */ /* MISC: */ /* */ /****************************************************************/ /* Examples from the Getting Started Section of the PDLREG procedure */ /* Introductory PDLREG Example */ data test; xl1 = 0; xl2 = 0; xl3 = 0; do t = -3 to 100; x = ranuni(1234); y = 10 + .25 * xl1 + .5 * xl2 + .25 * xl3 + .1 * rannor(1234); if t > 0 then output; xl3 = xl2; xl2 = xl1; xl1 = x; end; run; proc pdlreg data=test; model y = x( 4, 3 ); run;