BookmarkSubscribeRSS Feed
Amal1
Calcite | Level 5

Hello,

i am using the proc gplot to plot the mean of (length of stay) by age of the patient,while specifying the bubble size as the nmber of patients.

with the following code:

 

proc gplot data=data;

bubble moyenne*age=nbpatients;

formatt moyenne numx4.;

run;

I had a graph that used the whole data with its decimals and now that i want to repoduce the same graph 

i am surprised that it only uses the natural part of the number without its decimals,

but i don't know where is the problem.

 

this is the graph i want to reproducethis is the graph i want to reproducethis is the graph i getthis is the graph i getthis is how my data looks looks likethis is how my data looks looks like

 

Thank you.

1 REPLY 1
Reeza
Super User
formatt moyenne numx4.;

This applies a format that has no decimal places.

 

The number after the decimal indicates the number of decimals.

 

formatt moyenne numx8.1;

Is formatT (extra T) spelled correctly ? Not sure because t seems like you may be using another language here.

Check your log, you likely have a warning or error in there.

 

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 780 views
  • 0 likes
  • 2 in conversation