Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: how to drop groups of variables at one time


From   David K Evans <[email protected]>
To   [email protected]
Subject   Re: st: Re: how to drop groups of variables at one time
Date   Sat, 30 Oct 2004 10:50:02 -0400 (EDT)

If there's a common ending, you can do drop
_I*whatever_the_common_ending_is.

Or, if the variables are created at once, use a hyphen: drop
_I_1st_one_to_drop-_I_last_one_to_drop.

Dave

------------------------------------------------------------------------

PhD student, Harvard Economics Department
Phone: (O) 617-495-5634, (H) 617 - 493 - 1536
Address: Currier Mail Center #554, Cambridge, MA 02138

"Why throw money at problems? That's what money is for!"
(Kurt Vonnegut, _Timequake_)

------------------------------------------------------------------------

On Sat, 30 Oct 2004, Suzy wrote:

> what if there are only  some dummy (i.variables) I want to drop -  but
> not all of them?
>
> R.E. De Hoyos wrote:
>
> > drop _I*
> >
> > Rafa
> >
> > ----- Original Message ----- From: "Suzy" <[email protected]>
> > To: <[email protected]>
> > Sent: Saturday, October 30, 2004 3:24 PM
> > Subject: st: how to drop groups of variables at one time
> >
> >
> >> Dear Statlisters,
> >> I have stata v.8.2 intercooled. I created an interaction term using a
> >> continuous predictor variable*3 category predictor variable. I then
> >> included  the term into a logistic regression model. I received
> >> output that essentially stated I had no more room. My matsize was at
> >> the limit of 800 and I had set my memory to 100m and all my variables
> >> were compressed. I now want to drop the dummy variables that I
> >> created using the xi: and i. function. I have many of them and want
> >> to know an easy command to drop many variables at once. I tried drop
> >> i.variable/i.variable, but that doesn't work. However, if there is a
> >> way for me to add more space than what I've already done, that would
> >> be preferable.
> >> Thanks for any suggestions on this.
> >> Suzy
> >>
> >> *
> >> *   For searches and help try:
> >> *   http://www.stata.com/support/faqs/res/findit.html
> >> *   http://www.stata.com/support/statalist/faq
> >> *   http://www.ats.ucla.edu/stat/stata/
> >>
> > *
> > *   For searches and help try:
> > *   http://www.stata.com/support/faqs/res/findit.html
> > *   http://www.stata.com/support/statalist/faq
> > *   http://www.ats.ucla.edu/stat/stata/
> >
> >
> >
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index