EconPapers    
Economics at your fingertips  
 

ASTILE: Stata module to provide a faster and byable alternative for xtile

Attaullah Shah ()

Statistical Software Components from Boston College Department of Economics

Abstract: astile creates a new variable that categorizes exp by its quantiles. For example, we might be interested in making 10 size-based portfolios. This will involve placing the smallest 10% firms in portfolio 1, next 10% in portfolio 2, and so on. astile creates a new variable as specified in the newvar option from the existing variable which is specified in the = exp. Values of the newvar ranges from 1, 2, 3, ... up to n, where n is the maximum number of quantile groups specified in the nq option. For example, if we want to make 10 portfolios, values of the newvar will range from 1 to 10. astile is faster than Stata official xtile. It's speed efficiency matters more in larger data sets or when the quantile categories are created multiple times, e.g, we might want to create portfolios in each year or each month. Unlike Stata's official xtile, astile is byable.

Language: Stata
Requires: Stata version 9
Keywords: data management; quantiles; xtile; percentile; quartiles; Portfolio Creation; Making groups; byable (search for similar items in EconPapers)
Date: 2017-03-16, Revised 2018-05-12
Note: This module should be installed from within Stata by typing "ssc install astile". 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/a/astile.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/a/astile.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lasn.mlib Mata object code

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:s458321

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-05-02
Handle: RePEc:boc:bocode:s458321