Date: Tue, 4 May 1999 16:34:06 -0500
Reply-To: "Miller, Karen" <karenm@SPSS.COM>
Sender: "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU>
From: "Miller, Karen" <karenm@SPSS.COM>
Subject: Re: Newbie Question
As if 4 options weren't enough.....you can also use this:
If you're computing new variables through the Tranform->Compute Variable
dialog box, you can click the box labeled Type&Label under the Target
Variable box, then for the Label choice, click the radio button for "Use
expression as label". Now your variable label is your function.
This solution allows you to see the function, but it's not as easy to change
it. You could go to the Variable Label dialog box in the Define Variables
dialog box and copy/paste the variable label into syntax, change and run it.
However, the variable label isn't exactly syntax, so you have to do some
minor editing. For instance,
COMPUTE q10 = SUM(q1,q5) (COMPUTE)
has to be changed to:
COMPUTE q10 = SUM(q1,q5).
(delete the parenthesized command and add a command terminator).
Karen
Karen Miller
Senior Manager, Technical Support
SPSS Products & Services
SPSS Inc.
karenm@spss.com
> -----Original Message-----
> From: Rick Oliver [SMTP:richard@spss.com]
> Sent: Tuesday, May 04, 1999 11:51 AM
> To: SPSSX-L@UGA.CC.UGA.EDU
> Subject: Re: Newbie Question
>
> Actually, you don't have to learn much about syntax. There are several
> ways
> to generate and save the syntax equivalents of most menu/dialog box
> actions.
>
> 1. Instead of clicking the OK button, click the Paste button. This pastes
> the syntax to a syntax window.
>
> 2. In the Viewer tab of the Options dialog box (Edit menu>Options), click
> "Display commands in log." This will automatically display the generated
> syntax from menu/dialog box selections in the log, which is included in
> the
> Viewer (spo) file. You can then copy and save the syntax to a syntax file.
>
> 3. Copy the generated syntax from the journal file (default:
> windows\temp\spss..jnl). The journal file automatically records all syntax
> generated in each session. And, by default, this record is an historical
> archive of ALL sessions.
>
> 4. Finally, look at the Notes table. Command syntax is always displayed in
> the Notes table (although you'll have to edit the contents somewhat if you
> want to re-run the syntax, since the Notes table contains line-ending
> characters which the syntax editor doesn't recognize).
>
>
> <jpwinter@umsl.edu> wrote in message
> news:372efe56.3023311@news.umsl.edu...
> > Learn to use syntax rather than the pull-down menues. It is a steeper
> > learning curve but the best and only way to do what you ask.
> >
> > On Sat, 01 May 1999 22:35:43 GMT, onething@my-dejanews.com wrote:
> >
> > : Hi, I'm new to SPSS and am wondering how I change or view the formula
> of
> a
> > : computed variable. Basically, how do I re-call it to make changes or
> just
> > : simply see what I have computed in the past?
> > :
> > : Thanks!
> > :
> > : ‰
> > :
> > : -----------== Posted via Deja News, The Discussion Network
> ==----------
> > : http://www.dejanews.com/ Search, Read, Discuss, or Start Your
> Own
> >
|