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 stata_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 stata_cmd. r(rlist) saves the R-class results r() named in rlist which arise from stata_cmd. b(coeflist) stores the regression coefficients for variables named in coeflist. se(selist) stores the standard errors of regression coefficients for variablesnamed 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: Written 1999-10-11
Note: This module may be installed from within Stata by typing "ssc install byvar". Windows users should not attempt to download these files with a web browser.

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

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

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
Address: Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA
Contact information at EDIRC.
Series data maintained by Christopher F Baum ().

 
Page updated 2008-10-15
Handle: RePEc:boc:bocode:s392602