Documentation Example 2 for PROC HPCANDISC
/****************************************************************/
/* S A S S A M P L E L I B R A R Y */
/* */
/* NAME: HPCANEX2 */
/* TITLE: Documentation Example 2 for PROC HPCANDISC */
/* PRODUCT: HPSTAT */
/* SYSTEM: ALL */
/* KEYS: discriminant analysis, multivariate analysis */
/* PROCS: HPCANDISC */
/* DATA: Simulated Data */
/* */
/* SUPPORT: Ning Kang */
/* REF: PROC HPCANDISC, Example 2 */
/* MISC: */
/****************************************************************/
data ex2Data;
drop i j n n1 n2 n3 n4;
n = 5000000;
n1 = n*0.1;
n2 = n*0.25;
n3 = n*0.45;
n4 = n*0.7;
array x{100};
do i=1 to n;
do j=1 to dim(x);
x{j} = ranuni(1);
end;
if i <= n1 then z='small';
else if i <= n2 then z='medium';
else if i <= n3 then z='big';
else if i <= n4 then z='verybig';
else z='huge';
output;
end;
run;
proc hpcandisc data=ex2Data outstat=stats;
var x:;
class z;
performance details;
run;
proc hpcandisc data=ex2Data outstat=stats;
var x:;
class z;
performance details nodes = 4
host="&GRIDHOST" install="&GRIDINSTALLLOC";
run;