change p-value output format in preferencesSimple question. I understand the reasons why reporting p<0.0001 as "<0.0001"; I also understand how to change the number format in individual outputs. However, for some downtream analyses (like FDR calculation) it is necessary to have the exact p-value AND it is difficult to change format in a large output with thousands of tests. Is there a way to change the preference for p-value output system-wide? Or at least for each analysis separately, but before the output has been generated?
Thanks!
Re: change p-value output format in preferencesThanks, this is really helpful!
Re: change p-value output format in preferencesThis example illustrates the basic steps. You could extend it in many ways to suit a particular case.
// set namespace
Names Default to Here( 1 );
// open data set
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
// launch platform and estimate parameters
biv = dt << Bivariate( Y( :weight ), X( :height ), Fit Line );
// obtain reference to report layer
biv rep = biv << Report;
// obtain p-value for parameter estimate from report layer
pVal = biv rep["Parameter Estimates"][NumberColBox("Prob>|t|")] << Get( 2 );Re: change p-value output format in preferencesCould you post an example of a script that extracts p-values? I usually do this by copying the output into a table and parsing it, works ok. But yes, sure, a script would be easier.
Re: change p-value output format in preferencesIf you will be calculating FDR then you will have a lot of p-values. A script can extract the p-vaue. The format only affects the display of this value. The value extracted will be full-precision regardless of the format.