Resources

Basic Models

/*--------------------------------------------------------------

                    SAS Sample Library

        Name: hppnle01.sas
 Description: Example program from SAS/HPETS User's Guide,
              The HPPANEL Procedure
       Title: Basic Models
     Product: SAS/HPETS Software
        Keys: One-way random effects model
        PROC: HPPANEL
       Notes:

--------------------------------------------------------------*/


data hppan_ex01 (keep = cs ts y x1-x10);
   retain seed1 55371 seed2 97335 seed3 19412;
   array x[10];
   label y = 'dependent var.';
   label x1='first independent var.';
   label x2='second independent var.';
   label x3='third independent var.';
   int = 1;
   do cs = 1 to 50000;
      dummy = 10000*rannor( seed3 );
      do ts = 1 to 100;
      /*- generate regressors and compute the structural */
      /*- part of the dependent variable                 */
         y = 5;  /* intercept                           */
         do k = 1 to 10;
            x[k] = (cs + ts ) * (0.001*ranuni( k ) + 1) ;
            y = y + x[k] * k;
         end;

         /*- add an error term, such that e - N(0,100) -------*/
         y = y + 10000*rannor( seed2 );
         /*- add a random effect, such that e - N(0,100) -------*/
         y = y + dummy;
         output;
      end;
   end;
run;

proc hppanel data=hppan_ex01 ranone;
   id  cs ts;
   model y = x1-x10;
   performance nodes = 1 threads = 1 details
                host="&GRIDHOST" install="&GRIDINSTALLLOC";
run;

proc hppanel data=hppan_ex01 ranone;
   id  cs ts;
   model y = x1-x10;
   performance nodes = 10 threads = 1 details
                host="&GRIDHOST" install="&GRIDINSTALLLOC";
run;