BookmarkSubscribeRSS Feed
2 REPLIES 2
acordes
Rhodochrosite | Level 12

As you ask within the Visual Analytics theme, I would suggest that you cannot do in VA at least without preparing beforehand the density of the distrubution or kernel function you want to display. 

 

This one should get you started, it's a SAS Studio code solution. 

 

pic1.png

 

data kms;
do kms=0 to 200000 by 10000;
output;
end;
run;

/* ods graphics on; */
ods output UnivariateStatistics=lvs;
proc kde data=AS.COST_MATRIX;
where orig='global'; 
format Fecha_Aceptacion year.;
by Cobertura_Elemento;
freq invoice_acum;
univar kms / percentiles unistats  ;
score data=kms out=kms_X;
run;

ods graphics on;
proc sgpanel data=kms_x;
panelby Cobertura_Elemento / rows=3;
series x=value y=density / smoothconnect ;
band x=value lower=0  upper=density / fill  group=Cobertura_Elemento;
run;

 

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 2241 views
  • 5 likes
  • 3 in conversation