Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: programming error with -generate-


From   "Kieran McCaul" <Kieran.McCaul@uwa.edu.au>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: programming error with -generate-
Date   Tue, 9 Mar 2010 06:02:56 +0800

..

Is it interpreting the -x- as meaning hexadecimal?



-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Richard
Williams
Sent: Tuesday, 9 March 2010 5:57 AM
To: statalist@hsphsun2.harvard.edu; statalist@hsphsun2.harvard.edu
Subject: Re: st: programming error with -generate-

At 04:48 PM 3/8/2010, Partha Deb wrote:
>For even more head scratching, try this:
>
>clear all
>
>forvalues i=1/6 {
>set obs 10
>gen y = 1.2x + `i'
>tab y
>drop _all
>}
>
>Partha

This is weird.  I am not even sure what to search for -- "x" seems 
like kind of a broad term!  And the internal logic behind the results 
isn't obvious to me.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

*
*   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/

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index