Last active
December 21, 2015 16:39
-
-
Save pmbaumgartner/6335437 to your computer and use it in GitHub Desktop.
HOW TO DISPLAY P-VALUES TO A HIGHER NUMBER OF DECIMAL PLACES - http://www.sas.com/offices/europe/uk/support/sas-hints-tips/pvalues.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*the pvalue10.7 below is where you change the number of decimal places you want.*/ | |
/*the default value here will give you 10 digits to the 7th decimal place.*/ | |
ods path sasuser.templat(update) sashelp.tmplmst(read); | |
proc template; | |
edit Common.PValue; | |
notes "Default p-value column"; | |
just = r; | |
format = pvalue10.7; | |
end; | |
run; | |
proc reg data=sashelp.class; | |
model age = height weight ; | |
run; | |
/* | |
/ Unless you want to keep this edited template, delete it. | |
/ this only deletes the version of the template in your SASUSER | |
/ library, returning you to the regularly scheduled official one in | |
/ SASHELP. | |
/--------------------------------------------------------------------*/ | |
proc template; | |
delete common.pvalue; | |
run; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment