Resources

Documentation Example 3 for PROC QUANTREG


/****************************************************************/
/*          S A S   S A M P L E   L I B R A R Y                 */
/*                                                              */
/*    NAME: qregex3                                             */
/*   TITLE: Documentation Example 3 for PROC QUANTREG           */
/* PRODUCT: STAT                                                */
/*  SYSTEM: ALL                                                 */
/*    KEYS: Quantile Regression                                 */
/*                                                              */
/*   PROCS: QUANTREG                                            */
/*    DATA: bweight                                             */
/*                                                              */
/* SUPPORT: Guixian Lin                                         */
/*     REF:                                                     */
/*    MISC:                                                     */
/****************************************************************/

ods graphics on;

proc quantreg ci=sparsity/iid algorithm=interior(tolerance=5.e-4)
              data=sashelp.bweight;
   class visit ed;
   model weight = black married boy visit ed smoke
                  cigsper mom_age mom_age*mom_age
                  m_wtgain m_wtgain*m_wtgain /
                  quantile= 0.05 to 0.95 by 0.05
                  plot=quantplot;
run;