Search found 25 matches

Go to advanced search

by Tommytools
Sat Mar 21, 2009 10:27 am
Forum: Coding SPSS syntax
Topic: Scripting vs. Syntax
Replies: 4
Views: 969

Re: Scripting vs. Syntax

Syntax and scripts are asynchronous. The script or syntax has to finish before the next script or syntax is run. IE, if you just need to speed things up a bit in spss scripts are great, but I'd say for most applications Python is more powerful and flexible. I'm not too familiar with Python myself, t...
by Tommytools
Wed Mar 04, 2009 11:33 am
Forum: General
Topic: spss v16 open data file when you open a sintax
Replies: 7
Views: 1932

Re: spss v16 open data file when you open a sintax

Aye, SPSS should not open ANOTHER data window if one is already open. Opening syntaxes from the SPSS menu is not only more time-consuming its also more aggravating as its easy to mis-click in SPSS' crowded main menu. Most software packages I know work this way; The main program is needed to run to r...
by Tommytools
Wed Mar 04, 2009 10:16 am
Forum: Coding SPSS syntax
Topic: Repost: Selecting very specific data
Replies: 0
Views: 871

Repost: Selecting very specific data

Meh, guess I have to repost and start again. Data Structure: {Various info variables not relevant here}, date, location, location population, product name, {product info}. Dates, locations and location population data is repeated for each separate product, all products were monitored at the same tim...
by Tommytools
Wed Feb 04, 2009 1:10 pm
Forum: Coding SPSS syntax
Topic: Automate writing syntax or Charts/Ctables Automation
Replies: 1
Views: 820

It should be possible to automate this with a single macro like I did for CTABLEs in this thread . If you want I can have a stab at it, but I'm running SPSS V16, so it might have some subtle differences (compared to what works in v17). !DEFINE !autograph(var=!CHAREND('/') /label=!CMDEND) GGRAPH /GRA...
by Tommytools
Wed Feb 04, 2009 12:45 pm
Forum: Coding SPSS syntax
Topic: error in this procedure with LOOP
Replies: 1
Views: 795

I'm not too familiar with loop-end loop, but from a cursory glance I suspect you need to try something along the lines of: LOOP IF (X LT 5). COMPUTE X=X+1. -syntax- END LOOP. This loops until X=>5. Mind you you can find this info under the syntax ref guide (or pressing F1 in the syntax editor with t...
by Tommytools
Fri Jan 16, 2009 10:30 am
Forum: General feedback or questions about this forum
Topic: Attachments / User Attachment Control Panel
Replies: 10
Views: 6895

I'm still blind, even while wearing my glasses. I don't really need the attach function, but like I said earlier, just trying to help ;) I don't see any attachments, nor any settings that could affect me seeing them (or not). TT Ps. Should you need me to test it at some point, feel free to PM me, we...
by Tommytools
Wed Jan 14, 2009 1:30 pm
Forum: Coding SPSS syntax
Topic: Missing values analysis
Replies: 7
Views: 1708

In SPSS' syntax the period (.) is a terminator character, meaning it will always end the current function when it encounters a period.

Recode the sysmis to something other than a period and it should work. If not, just post here and we'll see what we can do.

TT
by Tommytools
Fri Jan 09, 2009 8:55 pm
Forum: Output
Topic: hide categories in custom tables
Replies: 3
Views: 756

If what fierce suggests isn't exactly what you want, try something along the lines of: COUNT ycount1=Var1(1). COUNT ycount2=Var2(1). COUNT ycount3=Var3(1). This is assuming your yes/nos are in binary form, 1 being yes and 0 being no. It should work fine with strings, I'm just a programmer and love b...
by Tommytools
Fri Jan 09, 2009 10:54 am
Forum: General feedback or questions about this forum
Topic: Attachments / User Attachment Control Panel
Replies: 10
Views: 6895

I'm noticing the same thing as Fierce, I didn't even notice you could attach until I read this thread. I can't see attachments either, I doubt I need to any time soon, but if there's anything I can do to help fix it feel free to prod me.

TT
by Tommytools
Fri Jan 09, 2009 10:41 am
Forum: General feedback or questions about this forum
Topic: Just wondering
Replies: 5
Views: 3682

Guess I might as well, since Fierce woke this thread up again :P I'm a programmer by trade, but I kinda rolled into SPSS for my work. I work for a development aid agency in the Netherlands and use SPSS mostly to produce reports from field surveys. Not much of a statistician myself, though I do know ...
by Tommytools
Wed Jan 07, 2009 11:15 am
Forum: Data input
Topic: Scale Problems
Replies: 1
Views: 828

I'm not clear on what you're trying to achieve exactly, but I assume you're looking for an average positive response. I don't know the format you're using, but I'll assume 1/0 (yes/no). Using the COUNT function to count the number of positive responses. (NOT functional code, example only) COUNT tota...
by Tommytools
Wed Dec 24, 2008 4:12 pm
Forum: General feedback or questions about this forum
Topic: Merry Christmas folks
Replies: 1
Views: 1725

Merry Christmas folks

Just wanted to wish everyone a merry christmas ;)

Have a good one folks.

TT
by Tommytools
Wed Dec 24, 2008 11:33 am
Forum: Coding SPSS syntax
Topic: Macros & Ctables
Replies: 5
Views: 1591

I've been messing around with the macro a bit more and came up with a more generic version, allowing adjusting of display results... GET FILE='C:\Program Files\SPSSInc\SPSS16\Samples\employee data.sav'. *////////////////. DEFINE !ctable(type=!TOKENS(2) /row=!CHAREND('/') /col=!CMDEND) CTABLES /VLABE...
by Tommytools
Fri Dec 19, 2008 11:41 am
Forum: Coding SPSS syntax
Topic: Macros & Ctables
Replies: 5
Views: 1591

I think I got it, it seems to have been an issue with the location of the [COLPCT.COUNT PCT40.1, TOTALS[COUNT F40.0]] statement. In Raynald's example it works perfectly, but similar syntaxes seems bug out because the statement is after the column variables. By moving it between the two variable stat...
by Tommytools
Thu Dec 18, 2008 12:11 pm
Forum: Coding SPSS syntax
Topic: Macros & Ctables
Replies: 5
Views: 1591

I'll keep messing around with it until I find something that works, I'll post it here if I figure it out.
Any ideas or things I can try are welcome, because I'm stumped.
Still applies though ;)

TT

cron