IDEAS home Printed from https://ideas.repec.org/c/boc/bocode/s458650.html
 

SVALUE: Stata module for computing and graphically displaying S-values against their respective P-values

Author

Listed:
  • Ariel Linden

    (Linden Consulting Group, LLC)

Programming Language

Stata

Abstract

svalue computes S-values corresponding to all P-values ranging from 0.0001 to 1.0, and generates a plot with the specific S-value highlighted. An S-value (Greenland 2018, 2019), also referred to as a self-information or surprisal information measure (Shannon 1948; MacKay 2003; Fraundorf 2019), is a negative base-2 log transformation of the P-value (or any probability value in the [0,1] range), such that S = -log(p)/log(2). Greenland (2017, 2018, 2019) advocates for the use of S-values to assist in the interpretation of P-values. The S-value is zero (unsurprising) when P = 1.0, increases exponentially as P approaches zero, and can be intuitively yet correctly understood via a simple coin-tossing experiment. As Fraundorf (2019) explains, a bit of surprisal is what you feel after "calling heads" on a coin toss, when the coin lands with heads up! Surprisal is two bits when you throw heads on two of two coins at once. Three bits of surprisal (heads up on three of three coins) is starting to feel respectable. Twenty-four bits of surprisal, on the other hand, is closer to what you experience when winning the lottery. Thus, surprisal reduces the probability of an extremely rare event to a quantity of more manageable size. In the context of P-values, larger S-values correspond to more evidence against the null hypothesis. For example, the corresponding S-value for a P-value of 0.05 is 4.32 bits of information against the null hypothesis (b = 0), which is only slightly more surprising than seeing 4 heads on the first toss of 4 coins (Greenland 2019). Similarly a P-value of 0.0001 has a corresponding S-value of 13.3 bits of information against the null hypothesis (b = 0), which is as surprising as seeing 13 heads in the first toss of 13 coins.

Suggested Citation

  • Ariel Linden, 2019. "SVALUE: Stata module for computing and graphically displaying S-values against their respective P-values," Statistical Software Components S458650, Boston College Department of Economics.
  • Handle: RePEc:boc:bocode:s458650
    Note: This module should be installed from within Stata by typing "ssc install svalue". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
    as

    Download full text from publisher

    File URL: http://fmwww.bc.edu/repec/bocode/s/svalue.ado
    File Function: program code
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/s/svalue.sthlp
    File Function: help file
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:bocode:s458650. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/debocus.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.