You need to provide:
1) How did you make that
2) Describe what is wrong
3) Describe what the correction should look like
and if you want tested code
4) Example data in the form of data step code.
If you don't want the values with that negative number then likely either a WHERE statement or data set option to filter values such as: Where variablename >=0;
If you want the negative value to be treated as a different number that is likely going to involve modifying your data set.
You need to provide:
1) How did you make that
2) Describe what is wrong
3) Describe what the correction should look like
and if you want tested code
4) Example data in the form of data step code.
If you don't want the values with that negative number then likely either a WHERE statement or data set option to filter values such as: Where variablename >=0;
If you want the negative value to be treated as a different number that is likely going to involve modifying your data set.
Use a graph procedure such as SGPLOT for the graphs. You have more control of appearance and the procedure does not modify the data.
Proc Univariate is more intended as exploratory and less for producing publication or presentation ready graphics.
An xaxis statement in SGplot can filter the range to values to display as well.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: