- data have;
- call streaminit(1234);
- do i =1 to 10000;
- y =abs(rand('normal',0,120));/*Folded Normal dist*/
- x =rand('poisson', 1.2);/*-------------discrete x*/
- output;
- end;
- run;
- %let gap=0.20;
- data have2;
- call streaminit(1234);
- set have;
- x0=x +(1-&gap)*(rand('uniform')-0.5);/*randomly assign values around x*/
- run;
- proc sgplot noautolegend;
- scatter x=x0 y=y/markerattrs=(symbol=circlefilled size =5);
- xaxis grid values=(0 to 8 by 1) offsetmin=0.075 offsetmax=0.075 label='x';
- yaxis grid;
- run;


雷达卡




京公网安备 11010802022788号







