Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: why do I lose data, and changes my data when I create new variables and recode missing variables


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   Re: st: why do I lose data, and changes my data when I create new variables and recode missing variables
Date   Mon, 2 Apr 2007 08:24:45 -0700 (PDT)

muuszls,

It is impossible to answer your question "Is there something wrong
with how I save or open things?" because you don't show us how you
save or open your data. I suggest that you -summarize- gdivs after
each -replace- and other command that modifies your data to identify
the culprit. Maybe you are changing gdivs somewhere in your code
because a command is mistakenly applied to gdivs instead of the
intended variable.

Friedrich

--- [email protected] wrote:
> why do I lose data when I create new variables and recode missing
> variables?
> 
> [snip]
>
> Then I have a variable gdivs (percentage of females in companies)
> When I summarize gdivs the mean is=26.98899
> 
> [various -replace- and other commands]
> 
> Now when I close STATA, save it under a new name and open it again
> another time the mean for gdivs changes from 26.98899 to a lower
> value. Sometimes 21, sometimes 10.91
> 
> [snip]
> 
> What do I do wrong? Is there something wrong with how I save or
> open things? Or with my commands?







 
____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 
*
*   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