| Date: | Thu, 25 Jun 2009 11:08:05 -0400 |
| Reply-To: | "Glibkowski, Brian" <bglibkowski@stonehill.edu> |
| Sender: | "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU> |
| From: | "Glibkowski, Brian" <bglibkowski@stonehill.edu> |
| Subject: | SPSS Syntax for PAMS analysis |
| Content-Type: | multipart/alternative;
|
|---|
Hello,
I found an article that has code for SPSS syntax to conduct a PAMS
analysis (see the SPSS syntax at the end of the article:
http://www.airweb.org/images/irapps20.pdf). However, when I run this
syntax I have two problems noted below.
PROBLEM 1
I have this syntax:
DESCRIPTIVES
variables= dim1, dim2 / SAVE.
I get this error message:
Text: dim1
An undefined variable name, or a scratch or system variable was
specified in a variable list which accepts only standard variables.
Check spelling and verify the existence of this variable.
This command not executed.
No Variables subcommand.
Second PROBLEM
I get this error message:
Run MATRIX procedure:
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>This command not executed.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 720
>Error # 12581
>A division by zero has been attempted.
>Error encountered in source line # 721
>Error # 12364
>Number of column elements is not the same in constructing the matrix.
Number
>of elements in one column should be the same for all the columns.
>This command not executed.
------ END MATRIX -----
By the way here is my entire SPSS code:
Proximities products, consultation, relationship, responsiveness,
compensation, reliability
/matrix=out(*)
/view=variable
/measure=seuclid.
ALSCAL
/Matrix=in(*)
/outfile='C:\PAMS\Matrix123.sav'
/level=ordinal
/plot=default
/criteria=dimens(2).
DESCRIPTIVES
variables= dim1, dim2 / SAVE.
matrix.
Get M
/File='C:\PAMS\Data.sav'
/variables= products, consultation, relationship, responsiveness,
compensation, reliability.
Get X
/file='c:\pams\matrix123.sav'
/variables= dim1, dim2.
Get ID
/File='C:\PAMS\Data.sav'
/Variables=Excel.
Compute r=nrow(x).
compute col=make(R,1,1).
compute x1={X,Col}.
compute m1=transpos(x1)*x1.
compute m2=transpos(x1)*transpos(m).
compute w=solve(m1,m2).
compute tw=transpos(w).
compute m1=tw*t(x1).
compute k=ncol(m).
compute r=nrow(M).
compute col=make(1,k,1).
compute pvar=rssq(m1-(rsum(m1)*col)/k).
compute var=rssq(m-(rsum(M)*col)/k).
compute col=pvar/var.
compute w={ID,TW,COL}.
Save W
/outfile='C:\PAMs\Individual.sav'.
End Matrix.
***************************
Brian Glibkowski
Assistant Professor
Management Department
Stonehill College
P: 508.565.1415
E: bglibkowski@stonehill.edu
***************************
[text/html]
|