Syntax for NPS
Posted by Synti on Dec 08, 2010; 4:50pm
URL: http://spssx-discussion.165.s1.nabble.com/Syntax-for-NPS-tp3297615.html
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.