Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Kit Baum <baum@bc.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
re: st: RE: regression r(103): too many variables |

Date |
Wed, 24 Feb 2010 11:06:08 -0500 |

<> Paul said in most other stats programs I've worked with, a single hyphen in a list of this type (i.e., dum_1_int_1-dum_1_int_96) would be expanded out in logical sequential fashion (i.e., dum_1_int_1 dum_1_int_2 ...). But Stata expanded it out in the physical order in which the variables appeared in the data set but in Stataland, a hyphenated varlist (help varlist) ALWAYS obeys the order (help order) of the dataset, and has nothing to do with the names of the variables encompassed by that range. You can induce the behavior you want by using -order-, but it is probably safer to use wildcards -- and perhaps even the more restrictive form of wildcards with ? rather than *. Another pet peeve of mine involves automatic variable abbreviations. I strongly suggest you set varabbrev off which will cause most of Martin's sample code to fail, but will make life simpler in a number of instances. Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**AW: st: RE: regression r(103): too many variables***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**st: instrumental variables, reg3, simultaneous equation model, var** - Next by Date:
**st: re: AW: re: Method for first stage, in xtivreg** - Previous by thread:
**st: instrumental variables, reg3, simultaneous equation model, var** - Next by thread:
**AW: st: RE: regression r(103): too many variables** - Index(es):