Bookmark and Share

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

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

Re: st: dropvars.ado

From   "Dimitriy V. Masterov" <>
To   Statalist <>
Subject   Re: st: dropvars.ado
Date   Tue, 15 Jan 2013 14:01:27 -0800


Thanks for taking a stab at this. However, this won't quite work as I
would like. I would like to drop variables when they exist, and ignore
when they don't (and maybe with an error message). Your code will not
work with phantom variables.


On Tue, Jan 15, 2013 at 1:49 PM, Austin Nichols <> wrote:
> prog dropvars2
> syntax [varlist]
> version 6
> for var `varlist': capture drop X
> end
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index