BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ballardw
Super User

And if you need to summarize data before proc univariate to get a desired histogram you might as well look into the actual graphing procedures such as SGPLOT where you would have much more control. For instance you could specify the NBINS, number of bins to display, option for a HISTOGRAM in SGPLOT and worry about specific limits.

That might quite helpful if you have many similar variables that might shift the median but are supposed to have similar distributions.

dr2014
Quartz | Level 8

@ballardw I do not want to summarize the data . I am happy with the histogram I got on  the sample dataset (bin size etc) and I want to move forward with proc univariate. My problem is I want a code that will determine the minimum and maximum  value of the var1 variable. proc sql  has the min and max function for pulling the minimum and maximum value of column data. Wish there was something like in in data steps.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 16 replies
  • 14929 views
  • 8 likes
  • 5 in conversation