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: Translating SPSS syntax into STATA


From   Stephen LeRoux <S.LeRoux@niesr.ac.uk>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Translating SPSS syntax into STATA
Date   Fri, 10 Aug 2012 13:09:21 +0000

Thanks Maarten

Stephen le Roux
National Institute of Economic and Social Research
2 Dean Trench Street, Smith Square, London
SW1P 3HE United Kingdom
Tel no: +44 (0)207 654 1946
Web: http://www.niesr.ac.uk/staff/staffdetail.php?StaffID=323 
Follow me on Twitter: https://twitter.com/#!/stephleroux

 

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Maarten Buis
Sent: 10 August 2012 13:30
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: Translating SPSS syntax into STATA

lhe_1 is a variable. So you need to look back in your syntax to where that variable was created in order to find out what it contains. My guess, but it can be nothing other than a guess, is that it contains some (group-specific) mean.

** in SPSS is ^ in Stata

-- Maarten

On Fri, Aug 10, 2012 at 2:15 PM, Stephen LeRoux <S.LeRoux@niesr.ac.uk> wrote:
> I need some help understanding the following SPSS syntax in order to translate it into STATA syntax.
>
> I am using STATA 12
>
> SPSS syntax:
>
> COMPUTE lhsq2 = (lhe - lhe_1)**2.
> EXECUTE.
>
> The variable lhe is the log of hourly pay. My data is one quarter of the UK Labour Force Survey.
>
> I don't know what the lhe_1 means.
>
> Any help would be much appreciated,
>
> Thanks
>
> Stephen le Roux
> National Institute of Economic and Social Research
> 2 Dean Trench Street, Smith Square, London SW1P 3HE United Kingdom Tel 
> no: +44 (0)207 654 1946
> Web: http://www.niesr.ac.uk/staff/staffdetail.php?StaffID=323
> Follow me on Twitter: https://twitter.com/#!/stephleroux
>
>
>
>
> *
> *   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/



--
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   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/

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com ______________________________________________________________________

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