Mastering SAS Summary Function: Tips and Tricks for Precise Results
Table
| Variable | Minimum Value | Maximum Value |
|---|---|---|
| V1 | -3.70323584 | 3.56810079 |
| V2 | 6.790622e-05 | 499931 |
| V3 | 2.497735e-01 | 7.502424e-01 |
Notes
- The
summaryfunction uses the default setting fordigits, which is determined by the global option"digits". This option can be set to change the default behavior. - When passing a value to the
summaryfunction, it overrides the global option and sets the precision accordingly. In this case, specifyingdigits=10resulted in unexpected behavior.
Advice
- Be aware of how the
summaryfunction handles thedigitsargument and its interaction with the global option"digits". - Set the global option
"digits"to a desired value if you want to change the default behavior of thesummaryfunction. - Consider using the
options(digits=10)command before running thesummaryfunction for more accurate results.
Last modified on 2023-06-07