When I start SPSS a dialog screen pops up with 6
radio buttons. However, it does not include what I most often do
especially when responding to posts on this list. The thing I
most often do is draft a new set of syntax.
However, I use an existing data or other data file often enough that I do not want to suppress this dialog box. How often do members of this list start their session of SPSS by drafting a set of syntax? Would you find it helpful to have a new radio button (or something) for this? Art Kendall Social Research Consultants ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Art Kendall
Social Research Consultants |
I have my preferences set to always open
a syntax window automatically on startup. Isn't that all you need
here.
I also always suppress that little startup dialog, though. Jon Peck Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: Art Kendall <[hidden email]> To: SPSSX-L post <[hidden email]>, Jon K Peck/Chicago/IBM@IBMUS, Suggestions/Chicago/IBM@IBMUS Date: 08/08/2011 09:09 AM Subject: First pop-up screen should include "Draft new set of syntax" When I start SPSS a dialog screen pops up with 6 radio buttons. However, it does not include what I most often do especially when responding to posts on this list. The thing I most often do is draft a new set of syntax. However, I use an existing data or other data file often enough that I do not want to suppress this dialog box. How often do members of this list start their session of SPSS by drafting a set of syntax? Would you find it helpful to have a new radio button (or something) for this? Art Kendall Social Research Consultants |
No. I do have a syntax window opened.
First I often do want to use a previously used data or syntax file. That is why I do not want suppress that pop-up dialog. Secondly, as you have heard from me maybe to the extent of being tiresome, beginners should be aware of the centrality of syntax in SPSS use. Beginners would be much more likely to be starting a draft of new syntax than to be using database queries. Art Kendall Social Research Consultants On 8/8/2011 11:28 AM, Jon K Peck wrote: I have my preferences set to always open a syntax window automatically on startup. Isn't that all you need here.===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Art Kendall
Social Research Consultants |
I second that (about syntax). Syntax makes you think: GUI doesn’t. When I worked for the (UK) Social Science Research Council Survey Unit, the late Alan Little, Head of Research at the Greater London Council, once joked, “Research is a substitute for action.” Quick as a flash, we retorted, “. . . and SPSS is a substitute for thought!” That was when we only had syntax, but everyone asked for chi-square regardless and it wasn’t at all unusual to see SPSS runs with “crosstabs all by all”. John F Hall www.surveyresearch.weebly.com (All SPSS tutorials in syntax) From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Art Kendall No. I do have a syntax window opened. I have my preferences set to always open a syntax window automatically on startup. Isn't that all you need here.
===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
This issue has been hashed over many times
on this list, but I'll just say this. Syntax has many uses, but IMO
making you think about your analysis problem, your data, statistics, or
presentation is not one of them. In fact, the gui makes it much easier
to concentrate on the important stuff without getting hung up on the dialect
of syntax.
Jon Peck Senior Software Engineer, IBM [hidden email] new phone: 720-342-5621 From: John F Hall <[hidden email]> To: [hidden email] Date: 08/08/2011 02:38 PM Subject: Re: [SPSSX-L] First pop-up screen should include "Draft new set of syntax" Sent by: "SPSSX(r) Discussion" <[hidden email]> I second that (about syntax). Syntax makes you think: GUI doesn’t. When I worked for the (UK) Social Science Research Council Survey Unit, the late Alan Little, Head of Research at the Greater London Council, once joked, “Research is a substitute for action.” Quick as a flash, we retorted, “. . . and SPSS is a substitute for thought!” That was when we only had syntax, but everyone asked for chi-square regardless and it wasn’t at all unusual to see SPSS runs with “crosstabs all by all”. John F Hall johnfhall@... www.surveyresearch.weebly.com (All SPSS tutorials in syntax) From: SPSSX(r) Discussion [[hidden email]] On Behalf Of Art Kendall Sent: 08 August 2011 18:29 To: [hidden email] Subject: Re: First pop-up screen should include "Draft new set of syntax" No. I do have a syntax window opened. First I often do want to use a previously used data or syntax file. That is why I do not want suppress that pop-up dialog. Secondly, as you have heard from me maybe to the extent of being tiresome, beginners should be aware of the centrality of syntax in SPSS use. Beginners would be much more likely to be starting a draft of new syntax than to be using database queries. Art Kendall Social Research Consultants On 8/8/2011 11:28 AM, Jon K Peck wrote: I have my preferences set to always open a syntax window automatically on startup. Isn't that all you need here. I also always suppress that little startup dialog, though. Jon Peck Senior Software Engineer, IBM peck@... new phone: 720-342-5621 From: Art Kendall <Art@...> To: SPSSX-L post [hidden email], Jon K Peck/Chicago/IBM@IBMUS, Suggestions/Chicago/IBM@IBMUS Date: 08/08/2011 09:09 AM Subject: First pop-up screen should include "Draft new set of syntax" When I start SPSS a dialog screen pops up with 6 radio buttons. However, it does not include what I most often do especially when responding to posts on this list. The thing I most often do is draft a new set of syntax. However, I use an existing data or other data file often enough that I do not want to suppress this dialog box. How often do members of this list start their session of SPSS by drafting a set of syntax? Would you find it helpful to have a new radio button (or something) for this? Art Kendall Social Research Consultants ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
The GUI does help look at the most abstract parts of
a project.� However, the GUI _by itself_� is not sufficient. I have
often said that it is fantastic at creating parts of a draft.�
Analysts need to know that there are many refinements perhaps
without knowing specifically what they are at first.� I also believe
that emphasizing that the metadata in the data view needs to be
complete for the the problem at hand before doing anything with it
reinforces the tie between the manipulations of the data and the
substantive nature of the problem.
Art On 8/8/2011 4:46 PM, Jon K Peck wrote: This issue has been hashed over many times on this list, but I'll just say this. � Syntax has many uses, but IMO making you think about your analysis problem, your data, statistics, or presentation is not one of them. � In fact, the gui makes it much easier to concentrate on the important stuff without getting hung up on the dialect of syntax.===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Art Kendall
Social Research Consultants |
In reply to this post by Art Kendall
At 11:07 AM 8/8/2011, Art Kendall wrote:
>When I start SPSS a dialog screen pops up with 6 radio >buttons. However, it does not include what I most often do >especially when responding to posts on this list. The thing I most >often do is draft a new set of syntax. I'm way, way out of date in versions. But, does menu Edit > Options >[tab] General >"Open syntax window at startup" still exist, and if so does it do anything like what you want? In SPSS 14, it's at the lower left of the General options tab ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Yep: still there in 19. Edit > Options displays several tabs, including
General with a box to tick for Open syntax window at startup. I usually start SPSS by double-clicking on an existing *.sav file and always have the blank syntax file option on. This opens the *.sav file, an output file with GET ...., and a new syntax file. If you start by clicking on the SPSS icon, you get a window with two sub-panes: 1: Open an existing data source 2: Open another type of file and four icons (Run tutorial; Type in data; Run an existing query; Create new query with Database Wizard) plus buttons for OK and Cancel. . . but a new syntax editor and data editor open behind it as well. Click on Cancel and off you go! John F Hall [hidden email] www.surveyresearch.weebly.com -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Richard Ristow Sent: 17 August 2011 00:49 To: [hidden email] Subject: Re: First pop-up screen should include "Draft new set of syntax" At 11:07 AM 8/8/2011, Art Kendall wrote: >When I start SPSS a dialog screen pops up with 6 radio >buttons. However, it does not include what I most often do >especially when responding to posts on this list. The thing I most >often do is draft a new set of syntax. I'm way, way out of date in versions. But, does menu Edit > Options >[tab] General >"Open syntax window at startup" still exist, and if so does it do anything like what you want? In SPSS 14, it's at the lower left of the General options tab ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
In reply to this post by Richard Ristow
Yes it does. Doing that is fine for any of us who
have used SPSS more than a few times.
What I was suggesting was that the pop-up include a radio button for "Draft new set of syntax". Many people on this list are probably sick of hearing me on these things. -- I believe that doing an analysis is a process of continuous refinement. The GUI is a great way to draft portions of the process. -- Beginners should be made aware from the beginning that there is underlying syntax. So including this radio button would be a frequent reminder that there is syntax. I mentioned the frequency with which I use that process as a further argument as to what it should be on the initial pop-up. For example, you have probably noticed that in response to posts on this list, I frequently create a set of syntax to make a particular point. The inclusion of another radio button should be a small programming effort, but I believe it would encourage the use of syntax. Art Kendall Social Research Consultants On 8/16/2011 6:49 PM, Richard Ristow wrote: At 11:07 AM 8/8/2011, Art Kendall wrote:===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
Art Kendall
Social Research Consultants |
In reply to this post by John F Hall
Hello Listers,
I have below data set: DATA LIST LIST /Person_ID Trip_ID Start_Time Origin_Location Finish_Time Destination_Location. BEGIN DATA 1 1 500 10 530 20 1 2 1600 20 1630 10 2 2 700 30 800 10 2 3 1200 10 1215 10 2 4 1230 10 1245 10 2 5 1700 10 1800 30 3 1 800 50 900 10 3 2 1700 10 1800 50 4 1 600 60 700 10 4 2 1200 10 1210 80 4 5 1600 80 1610 10 4 6 1800 10 1900 60 END DATA. and want to aggregate the data to Person_ID with 24 new variables (H0, H1, ..., H23) representing 24 hour period. In each of the 24 variables, I want to code 1 if the person is in Location 10 or missing value otherwise. For example, the above data shows that Person_ID 3 is in Location 10 from 900 to 1700, and hence, he should be given 1 from variable H8 to variable H16 and missing for other variables (H0-H7 and H17-H23). Any help will be appreciated. Many thanks in advance, Boreak This email is intended solely for the named addressee. If you are not the addressee indicated please delete it immediately. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Administrator
|
See the following commands:
LOOP, VECTOR, LAG, COMPUTE... Give it a try and see what happens. There are tons of examples of what you are trying to do in the archives of this list. ---
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. --- "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" |
In reply to this post by Boreak Silk
Hi Hillel Vardi,
Many thanks for your help. It works well. Best regards, Boreak Silk | Research Analyst | City Research City of Melbourne | Council House 1, 200 Little Collins Street Melbourne 3000 | GPO Box 1603 Melbourne 3001 T: 03 9658 8419 | F: 03 9658 8672 | E: [hidden email] | www.melbourne.vic.gov.au We value: Integrity | Courage | Accountability | Respect | Excellence Please consider your environmental responsibility before printing this email. -----Original Message----- From: hillel vardi [mailto:[hidden email]] Sent: Tuesday, 30 August 2011 7:22 PM To: Boreak Silk; [hidden email] Subject: Re: Aggregate and Time Allocation Shalom I suppose that this syntax will do what you asked . (assuming there is no overnight ) . DATA LIST LIST /Person_ID Trip_ID Start_Time Origin_Location Finish_Time Destination_Location. BEGIN DATA 1 1 500 10 530 20 1 2 1600 20 1630 10 2 2 700 30 800 10 2 3 1200 10 1215 10 2 4 1230 10 1245 10 2 5 1700 10 1800 30 3 1 800 50 900 10 3 2 1700 10 1800 50 4 1 600 60 700 10 4 2 1200 10 1210 80 4 5 1600 80 1610 10 4 6 1800 10 1900 60 END DATA. formats all(f4) . compute endH =trunc(lag(Finish_Time,1)/100) . compute startH =trunc(Start_Time/100) . DO IF lag(Person_ID,1) eq Person_ID and (Origin_Location eq 10) and (lag(Destination_Location,1) eq 10) . compute iscase=1. DO REPEAT num=1 to 24./ var=h1 to h24. if (num ge endh) and (num le starth) var=1. end repeat. end if. execute . AGGREGATE /OUTFILE= * /BREAK=Person_ID /h1 to h24=N(h1 to h24). Hillel Vardi BGU On 30/08/2011 07:01, Boreak Silk wrote: > Hello Listers, > > I have below data set: > > DATA LIST LIST /Person_ID Trip_ID Start_Time Origin_Location Finish_Time > Destination_Location. > BEGIN DATA > 1 1 500 10 530 20 > 1 2 1600 20 1630 10 > 2 2 700 30 800 10 > 2 3 1200 10 1215 10 > 2 4 1230 10 1245 10 > 2 5 1700 10 1800 30 > 3 1 800 50 900 10 > 3 2 1700 10 1800 50 > 4 1 600 60 700 10 > 4 2 1200 10 1210 80 > 4 5 1600 80 1610 10 > 4 6 1800 10 1900 60 > END DATA. > > and want to aggregate the data to Person_ID with 24 new variables (H0, > H1, ..., H23) representing 24 hour period. > In each of the 24 variables, I want to code 1 if the person is in > Location 10 or missing value otherwise. For example, > the above data shows that Person_ID 3 is in Location 10 from 900 to > 1700, and hence, he should be given 1 from > variable H8 to variable H16 and missing for other variables (H0-H7 and > H17-H23). > > Any help will be appreciated. > > > Many thanks in advance, > > > Boreak > This email is intended solely for the named addressee. > If you are not the addressee indicated please delete it immediately. > > ===================== > To manage your subscription to SPSSX-L, send a message to > [hidden email] (not to SPSSX-L), with no body text except > command. To leave the list, send the command > SIGNOFF SPSSX-L > For a list of commands to manage subscriptions, send the command > INFO REFCARD ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
Administrator
|
In reply to this post by Boreak Silk
Something like the following (Untested):
--- NUMERIC Hr0 TO Hr23. VECTOR Hr = Hr0 TO Hr23. LOOP #=Trunc(Start_Time/100) TO Trunc(Finish_Time/100). + COMPUTE Hr(#+1)=Origin_Location. END LOOP. DO IF LAG(Person_ID) = Person_ID. + LOOP #=Trunc(LAG(Finish_Time)/100) TO Trunc(Start_Time/100). + COMPUTE Hr(#+1)=Destination_Location. + END LOOP. END IF. AGGREGATE OUTFILE * / BREAK Person_ID / HR0 TO Hr23=MAX(Hr0 TO Hr23). ***. TEMPORARY. RECODE Hr0 TO Hr23 (10=1)(Else=0). MISSING VALUES Hr0 TO Hr23 (0).
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. --- "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" |
Administrator
|
TINY PROBLEM in two lines.
CORRECTED BELOW!. + COMPUTE Hr(#+1)=LAG(Destination_Location). was + COMPUTE Hr(#+1)=Destination_Location. / HR0 TO Hr23=LAST(Hr0 TO Hr23). was / HR0 TO Hr23=MAX(Hr0 TO Hr23). OTOH, The question is rather ambiguous WRT how to deal with the end points!
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. --- "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" |
Hi David,
Many thanks for your help. It works well. Regards, Boreak -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of David Marso Sent: Wednesday, 31 August 2011 10:57 PM To: [hidden email] Subject: Re: Aggregate and Time Allocation TINY PROBLEM in two lines. CORRECTED BELOW!. + COMPUTE Hr(#+1)=LAG(Destination_Location). was + COMPUTE Hr(#+1)=Destination_Location. / HR0 TO Hr23=LAST(Hr0 TO Hr23). was / HR0 TO Hr23=MAX(Hr0 TO Hr23). OTOH, The question is rather ambiguous WRT how to deal with the end points! David Marso wrote: > > Something like the following (Untested): > --- > NUMERIC Hr0 TO Hr23. > VECTOR Hr = Hr0 TO Hr23. > LOOP #=Trunc(Start_Time/100) TO Trunc(Finish_Time/100). > + COMPUTE Hr(#+1)=Origin_Location. > END LOOP. > DO IF LAG(Person_ID) = Person_ID. > + LOOP #=Trunc(LAG(Finish_Time)/100) TO Trunc(Start_Time/100). > + COMPUTE Hr(#+1)=LAG(Destination_Location). > + END LOOP. > END IF. > AGGREGATE OUTFILE * > / BREAK Person_ID > / HR0 TO Hr23=LAST(Hr0 TO Hr23). > ***. > TEMPORARY. > RECODE Hr0 TO Hr23 (10=1)(Else=0). > MISSING VALUES Hr0 TO Hr23 (0). > > > Boreak Silk wrote: >> >> Hello Listers, >> >> I have below data set: >> >> DATA LIST LIST /Person_ID Trip_ID Start_Time Origin_Location >> Destination_Location. >> BEGIN DATA >> 1 1 500 10 530 20 >> 1 2 1600 20 1630 10 >> 2 2 700 30 800 10 >> 2 3 1200 10 1215 10 >> 2 4 1230 10 1245 10 >> 2 5 1700 10 1800 30 >> 3 1 800 50 900 10 >> 3 2 1700 10 1800 50 >> 4 1 600 60 700 10 >> 4 2 1200 10 1210 80 >> 4 5 1600 80 1610 10 >> 4 6 1800 10 1900 60 >> END DATA. >> >> and want to aggregate the data to Person_ID with 24 new variables >> H1, ..., H23) representing 24 hour period. >> In each of the 24 variables, I want to code 1 if the person is in >> Location 10 or missing value otherwise. For example, >> the above data shows that Person_ID 3 is in Location 10 from 900 to >> 1700, and hence, he should be given 1 from >> variable H8 to variable H16 and missing for other variables (H0-H7 and >> H17-H23). >> >> Any help will be appreciated. >> Many thanks in advance, >> >> Boreak >> >> <SNIP> >> > -- View this message in context: http://spssx-discussion.1045642.n5.nabble.com/First-pop-up-screen-should -include-Draft-new-set-of-syntax-tp4678022p4754026.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD This email is intended solely for the named addressee. If you are not the addressee indicated please delete it immediately. ===================== To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD |
I will be out of the office on family leave for the next several weeks. If you need immediate assistance please call the main office number 503/223-8248 or 800/788-1887 and the receptionist will ensure that I get the message. Thank you. Kelly |
Free forum by Nabble | Edit this page |