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

CROSSVALIDATE2: Stata module to implement Cross-Validation in Stata

Author

Listed:
  • William R. Buchanan

    (SAG Corporation)

  • Steven D. Brownell

    (SAG Corporation)

Programming Language

Stata

Abstract

crossvalidate2 is a package containing several commands to enable users to implement multiple cross-validation procedures with estimation commands in Stata. There are two prefix commands, -xv- an -xvloo- that are used to implement the entire cross-validation pipeline with the estimation command supplied by the user. For users that require more fine-grained control over the cross-validation process, the commands -splitit2-, -fitit-, -predictit-, and -validateit- implement each phase of cross-validation discretely. There are also several utility commands included as well. Lastly, the include Mata library contains over 40 different evaluation functions covering binary and multi-class classification models and continuous outcome models. If you only intend to use the -xv- and -xvloo- prefix commands, they should work without any further steps. If, however, you wish to use the lower-level commands, you will need to call the libxv command first to compile the Mata library on your machine.

Suggested Citation

  • William R. Buchanan & Steven D. Brownell, 2024. "CROSSVALIDATE2: Stata module to implement Cross-Validation in Stata," Statistical Software Components S459358, Boston College Department of Economics, revised 16 Dec 2024.
  • Handle: RePEc:boc:bocode:s459358
    Note: This module should be installed from within Stata by typing "ssc install crossvalidate2". 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/c/crossvalidate2.sthlp
    File Function: help file
    Download Restriction: no

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

    File URL: http://fmwww.bc.edu/repec/bocode/c/classify.sthlp
    File Function: help file
    Download Restriction: no

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

    File URL: http://fmwww.bc.edu/repec/bocode/c/cmdmod.sthlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/c/crossvalidate.mata
    File Function: program code
    Download Restriction: no

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

    File URL: http://fmwww.bc.edu/repec/bocode/f/fitit.sthlp
    File Function: help file
    Download Restriction: no

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

    File URL: http://fmwww.bc.edu/repec/bocode/l/libxv.mlib
    File Function: Mata object library
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/l/libxv.sthlp
    File Function: help file
    Download Restriction: no

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

    File URL: http://fmwww.bc.edu/repec/bocode/p/predictit.sthlp
    File Function: help file
    Download Restriction: no

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

    File URL: http://fmwww.bc.edu/repec/bocode/s/splitit2.sthlp
    File Function: help file
    Download Restriction: no

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

    File URL: http://fmwww.bc.edu/repec/bocode/s/state.sthlp
    File Function: help file
    Download Restriction: no

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

    File URL: http://fmwww.bc.edu/repec/bocode/v/validateit.sthlp
    File Function: help file
    Download Restriction: no

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

    File URL: http://fmwww.bc.edu/repec/bocode/x/xv.sthlp
    File Function: help file
    Download Restriction: no

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

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvloo.sthlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvbinmtrx.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvbintab.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvcontmtrx.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvconttab.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvmcmtrx.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvmctab.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvphase-fit.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvphase-predict.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvphase-split.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvphase-validate.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvphases.ihlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/x/xvlabels.stjson
    File Function: program code
    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:s459358. 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.