Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pmbaumgartner/6335437 to your computer and use it in GitHub Desktop.
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
/*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