|
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 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: 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 *************************** |
|
Hi Brian,
The first error comes from the fact that you do not load the data file from alscal (Matrix123.sav) before running the descriptives on dim1 and dim2. The second error comes from the division of the row matrix pvar with var, which contains values of 0. Hth, Vlad On Thu, Jun 25, 2009 at 6:08 PM, Glibkowski, Brian<[hidden email]> wrote: > 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: [hidden email] > > *************************** > > ===================== 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 |
| Free forum by Nabble | Edit this page |
