EconPapers    
Economics at your fingertips  
 

BYVAR: Stata module to repeat a command by variable

Patrick Royston ()
Additional contact information
Patrick Royston: MRC Clinical Trials Unit

Statistical Software Components from Boston College Department of Economics

Abstract: byvar repeats stataFile-URL: http://fmwww.bc.edu/repec/bocode/_/cmd for each distinct combination of values in varlist; varlist may contain string variables. Option e(elist) saves the e-class estimates e() named in elist which arise from stataFile-URL: http://fmwww.bc.edu/repec/bocode/_/cmd. r(rlist) saves the R-class results r() named in rlist which arise from stataFile-URL: http://fmwww.bc.edu/repec/bocode/_/cmd. b(coeflist) stores the regression coefficients for variables named in coeflist. se(selist) stores the standard errors of regression coefficients for variables named in selist. generate creates new variable(s) corresponding to the quantities named in the e(), r(), b() and se() options. This is an update of byvar, described in ip9 of STB-27, for Stata version 8 and later.

Language: Stata
Requires: Stata version 8.0
Keywords: data transformations; programming (search for similar items in EconPapers)
Date: 1999-10-11, Revised 2014-10-29
Note: This module may be installed from within Stata by typing "ssc install byvar". 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.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/b/byvar.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/b/byvar.sthlp help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s392602

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-30
Handle: RePEc:boc:bocode:s392602