Thanks to Kit Baum, the sgpv package is now also available from SSC (in addition to my own Github page):
The commands were inspired by this thread.
Second Generation P-Values (SGPVs) were proposed first in Blume et.al. (2018) (references are at the bottom of this post) as an alternative to the standard p-values.
Second Generation P-Values (SGPVs) are the proportion of null-hypotheses which are within an interval estimate of a parameter of interest.
SGPVs are easier to understand than normal p-values.
Remember that the usual p-values are the probability of observing the value of a test-statistic given that the null-hypothesis is true.
The p-values do not tell you the probability that the null-hypothesis is true.
SGPVs also lie within the 0-1 range. Blume et al. denote SGPVs also by pδ.
pδ lies between 0 and 1.
A pδ of 0 indicates that 0% of the null hypotheses are compatible with the data.
A pδ of 1 indicates that 100% of the null hypotheses are compatible with the data.
A pδ between 0 and 1 indicates inconclusive evidence.
A pδ of 1/2 indicates strictly inconclusive evidence.
The sgpv-package contains all of the R-functions from the R-package translated into Stata.
The sgpv-package consists of:
It offers features which are not available in the original R-code like calculation SGPVs after estimations and GUIs.
There are some limitations with regards to the accepted input compared to the original R-code but these should not matter for the average user.
Examples of how to work around these limitations are also provided in the respective help files.
The examples below are taken from the help file of the sgpv-command and show how easy it is to get the SGPVs side-by-side with the normal p-values after an estimation command.
References:
Blume JD, D’Agostino McGowan L, Dupont WD, Greevy RA Jr. (2018). Second-generation p-values: Improved rigor, reproducibility, & transparency in statistical analyses. PLoS ONE 13(3): e0188299. https://doi.org/10.1371/journal.pone.0188299
Blume JD, Greevy RA Jr., Welty VF, Smith JR, Dupont WD (2019). An Introduction to Second-generation p-values. The American Statistician. In press. https://doi.org/10.1080/00031305.2018.1537893
The commands were inspired by this thread.
Second Generation P-Values (SGPVs) were proposed first in Blume et.al. (2018) (references are at the bottom of this post) as an alternative to the standard p-values.
Second Generation P-Values (SGPVs) are the proportion of null-hypotheses which are within an interval estimate of a parameter of interest.
SGPVs are easier to understand than normal p-values.
Remember that the usual p-values are the probability of observing the value of a test-statistic given that the null-hypothesis is true.
The p-values do not tell you the probability that the null-hypothesis is true.
SGPVs also lie within the 0-1 range. Blume et al. denote SGPVs also by pδ.
pδ lies between 0 and 1.
A pδ of 0 indicates that 0% of the null hypotheses are compatible with the data.
A pδ of 1 indicates that 100% of the null hypotheses are compatible with the data.
A pδ between 0 and 1 indicates inconclusive evidence.
A pδ of 1/2 indicates strictly inconclusive evidence.
The sgpv-package contains all of the R-functions from the R-package translated into Stata.
The sgpv-package consists of:
- sgpv - a wrapper around the other commands, sgpvalue and fdrisk, to be used after estimations commands
- sgpvalue - calculate the SGPVs
- sgpower - power functions for the SGPVs
- fdrisk - false confirmation/discovery risks for the SGPVs
- plotsgpv - plot the SGPVs
It offers features which are not available in the original R-code like calculation SGPVs after estimations and GUIs.
There are some limitations with regards to the accepted input compared to the original R-code but these should not matter for the average user.
Examples of how to work around these limitations are also provided in the respective help files.
The examples below are taken from the help file of the sgpv-command and show how easy it is to get the SGPVs side-by-side with the normal p-values after an estimation command.
Code:
* sgpv as a prefix-command: syuse auto, clear sgpv: regress price mpg weight foreign * Save estimation for later usage estimate store pricereg * The same result but this time after the last estimation. sgpv * Now run a quantile regression instead qreg price mpg weight foreign estimates store priceqreg * Calculate SGPVs for the stored estimations and only for the foreign coefficient sgpv, estimate(pricereg) coefficient("foreign") sgpv, estimate(priceqreg) coefficient("foreign")
Blume JD, D’Agostino McGowan L, Dupont WD, Greevy RA Jr. (2018). Second-generation p-values: Improved rigor, reproducibility, & transparency in statistical analyses. PLoS ONE 13(3): e0188299. https://doi.org/10.1371/journal.pone.0188299
Blume JD, Greevy RA Jr., Welty VF, Smith JR, Dupont WD (2019). An Introduction to Second-generation p-values. The American Statistician. In press. https://doi.org/10.1080/00031305.2018.1537893
Comment