Command syntax for decimal places

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Command syntax for decimal places

Myers, Nicholas
Hello.

I am imposing Exploratory Factor Analysis model with Principal Axis
Factoring, via a series of a matrix commands (see below).

My question is: What is the command syntax for limiting the decimal places
in the outputted tables (i.e., print statements)? For example, suppose I
want to limit the Rresid matrix to 3 decimal places (see *** lines below).

Responses can be sent to [hidden email]

Thank you for considering my question.

nick myers

compute R={.970,-.953,-.055,-.130;-.953,.960,-.091,-.036;-.055,-
.091,.989,.990;-.130,-.036,.99,.996}.

CALL EIGEN(R,V,Eigenval).

compute Vtrans=transpos(V).
compute VtranV=Vtrans*V.

compute L=Vtrans*R*V.

compute Rpred=V*L*Vtrans.
*** compute Rresid=R-Rpred. ***

print R / title "Observed R".

print Eigenval /title "EIGENVALUES".
print L / title "Eigenvalue matrix".

print V /title "EIGENVECTORS".
print Vtrans /title "V tansposed".
print VtranV /title "Identity matrix".

print R / title "Observed R".
print Rpred / title "Predicted R".
*** print Rresid / title "Residual R". ***

end matrix.

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