Syntax for NPS

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Syntax for NPS

Synti
Hello everybody,

I am actually writing the syntax for the net promoter score in SPSS. I've already found a help for the syntax in this forum, but there is still one problem left.
Below you see the syntax I am using at the moment. At the end I would like to close and to deactivate the window which appears with the NPS and not just to minimize it. But SPSS doesn't react to this syntax demand.The window still exists. Can anybody help me?Thank you a lot!


DATASET DECLARE NPSData10 WINDOW=MINIMIZED.
AGGREGATE OUTFILE=NPSData10
/BREAK=Hilfsvariable
/GrpSize 'N. of respondents in group' = NU
/PctProm 'Percent of promoters' = PIN(q12Skala,9,10)
/PctDetr 'Percent of detractors' = PIN(q12Skala,1, 6).

DATASET ACTIVATE NPSData10 WINDOW=FRONT.

COMPUTE NPS = PctProm - PctDetr.
VAR LABEL NPS 'Net Promoter Score'.

descriptives PctProm PctDetr NPS.

execute.

DATASET ACTIVATE NPSData10 WINDOW=FRONT.
execute.

DATASET close NPSData10.
execute.


format NPS (F3.1).
execute.
Reply | Threaded
Open this post in threaded view
|

Re: Syntax for NPS

Marks, Jim
Do you have another dataset open and named?

SPSS will not close the last dataset-- it will remove the name but leave
the dataset active.

Jim Marks
Director, Market Research
x1616


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Synti
Sent: Wednesday, December 08, 2010 10:51 AM
To: [hidden email]
Subject: Syntax for NPS

Hello everybody,

I am actually writing the syntax for the net promoter score in SPSS.
I've
already found a help for the syntax in this forum, but there is still
one
problem left.
Below you see the syntax I am using at the moment. At the end I would
like
to close and to deactivate the window which appears with the NPS and not
just to minimize it. But SPSS doesn't react to this syntax demand.The
window
still exists. Can anybody help me?Thank you a lot!


DATASET DECLARE NPSData10 WINDOW=MINIMIZED.
AGGREGATE OUTFILE=NPSData10
/BREAK=Hilfsvariable
/GrpSize 'N. of respondents in group' = NU
/PctProm 'Percent of promoters' = PIN(q12Skala,9,10)
/PctDetr 'Percent of detractors' = PIN(q12Skala,1, 6).

DATASET ACTIVATE NPSData10 WINDOW=FRONT.

COMPUTE NPS = PctProm - PctDetr.
VAR LABEL NPS 'Net Promoter Score'.

descriptives PctProm PctDetr NPS.

execute.

DATASET ACTIVATE NPSData10 WINDOW=FRONT.
execute.

DATASET close NPSData10.
execute.


format NPS (F3.1).
execute.

--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Syntax-for-NPS-tp3297615p3
297615.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

=====================
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
Reply | Threaded
Open this post in threaded view
|

Re: Syntax for NPS

Synti
No there is no other dataset open and named. just the one I am activating in the syntax!
Reply | Threaded
Open this post in threaded view
|

Fieldlist and varlist

Antoon Smulders
Hello all,

Can someone explain to me the difference between fieldlists and varlists (or point me to a section in the help)?
NPTESTS and LINEAR use fieldlist in their syntax diagrams, while most commands use varlists.
I am using version 19.0.0.
Thanks in advance
Antoon Smulders

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