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.

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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