pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OUTPUT Command in SPSS


From: subhasree
Subject: Re: OUTPUT Command in SPSS
Date: Thu, 15 Jul 2010 20:01:34 -0700 (PDT)

Hi, Ben,

Thanks for the Reply.

i am trying to workout the following code in pspp

 GET
 FILE='C:\Data\MARKET.sav'.

COMPUTE DUMMY=1.
EXECUTE.
AGGREGATE
  /OUTFILE=* MODE=ADDVARIABLES
  /BREAK=DUMMY
  /RC_LP_mean=MEAN(RC_LAPSED_PERIOD) 
  /FV_mean=MEAN(FRE_VISIT) 
  /SS_mean=MEAN(SAL_SALES)
  /BS_mean=MEAN(BAS_SALES).
DATASET DECLARE AGG_SSC7.
AGGREGATE
  /OUTFILE='AGG_SSC7'
  /BREAK=SSC7
  /SS_mean=MEAN(SAL_SALES) 
  /SS_base=FIRST(SAL_SALES_mean) 
  /BS_mean=MEAN(BAS_SALES) 
  /BS_base=FIRST(BAS_SALES_mean) 
  /RC_LP_mean=MEAN(RC_LAPSED_PERIOD) 
  /RC_LP_base=FIRST(RC_LAPSED_PERIOD_mean) 
  /FV_mean=MEAN(FRE_VISIT) 
  /FV_base=FIRST(FRE_VISIT_mean) 
  /SS_sum=SUM(SAL_SALES)
  /N_BREAK=N.

the error what i am getting are :

COMPUTE

COMPUTE DUMMY=1.

EXECUTE

EXECUTE.

AGGREGATE

AGGREGATE

  /OUTFILE=* MODE=ADDVARIABLES

C:\Analytic Reporting\Syntax\Profiling_RFV.sps:14: error: AGGREGATE:
Syntax error expecting BREAK at `MODE'.

  /BREAK=DUMMY

  /RC_LP_mean=MEAN(RC_LAPSED_PERIOD)

  /FV_mean=MEAN(FRE_VISIT)

  /SS_mean=MEAN(SAL_SALES)

  /BS_mean=MEAN(BAS_SALES).

DATASET

DATASET DECLARE AGG_SSC7.

C:\Analytic Reporting\Syntax\Profiling_RFV.sps:22: error: DATASET: DATASET
is not yet implemented.

AGGREGATE

AGGREGATE

  /OUTFILE='AGG_SSC7'

  /BREAK=SSC7

  /SS_mean=MEAN(SAL_SALES)

  /SS_base=FIRST(SAL_SALES_mean)

C:\Analytic Reporting\Syntax\Profiling_RFV.sps:27: error: AGGREGATE:
SAL_SALES_mean is not a variable name.

  /BS_mean=MEAN(BAS_SALES)

  /BS_base=FIRST(BAS_SALES_mean)

  /RC_LP_mean=MEAN(RC_LAPSED_PERIOD)

  /RC_LP_base=FIRST(RC_LAPSED_PERIOD_mean)

  /FV_mean=MEAN(FRE_VISIT)

  /FV_base=FIRST(FRE_VISIT_mean)

  /SS_sum=SUM(SAL_SALES)

  /N_BREAK=N.


Could you please help me in this.Tried using scratch file.  But could not
succeed.

Thanks in advance

Regards
Subhasree


Ben Pfaff wrote:
> 
> subhasree <address@hidden> writes:
> 
>> Would like to know some more things which are equivalent in PSPP:
>>
>> 1. Dummy
> 
> What is a Dummy in SPSS?
> 
>> 2. DATASET DECLARE
> 
> PSPP has the related concept of a "scratch file":
>        
> http://www.gnu.org/software/pspp/manual/html_node/File-Handles.html
> -- 
> Ben Pfaff 
> http://benpfaff.org
> 
> _______________________________________________
> Pspp-users mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/pspp-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/OUTPUT-Command-in-SPSS-tp29168606p29179640.html
Sent from the Gnu - PSPP - Users mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]