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

st: RE: Re: How do you drop the variable -(e)- from the data?

From   "Nick Cox" <>
To   <>
Subject   st: RE: Re: How do you drop the variable -(e)- from the data?
Date   Thu, 6 Nov 2003 11:58:02 -0000

xcontract foreign rep78, list(, sepby(foreign)) 

is evidently legal. Does that solve part of the problem? 


Roger Newson
> The reason I wanted to drop "(e)" was that it was causing 
> confusing output 
> to come from my -xcollapse- and -xcontract- packages, 
> downloadable from SSC 
> or from my website. These are extended versions of -collapse- and 
> -contract-, respectively, and create output data sets that 
> can be listed 
> and/or saved to disk and/or saved to memory (overwriting 
> any existing 
> data). If the user types, in Stata 8,
> sysuse auto, clear
> regress mpg weight
> xcontract foreign rep78, list(*, sepby(foreign))
> then -xcontract- lists the frequencies of each combination 
> of -foreign- and 
> -rep78-, both as numbers and as a percentage of all cars, 
> and also lists 
> the variable "(e)", which could be confusing for naive 
> users. It is helpful 
> to know that this will be fixed, and that, in the meantime, 
> "(e)" will not 
> be saved to the output data set produced by the -saving()- 
> option of 
> -xcontract- or -xcollapse-.

*   For searches and help try:

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