| Date: | Thu, 20 Feb 1997 22:37:38 GMT |
| Reply-To: | Michelle Yik <myik@UNIXG.UBC.CA> |
| Sender: | "SPSSX(r) Discussion" <SPSSX-L@UGA.CC.UGA.EDU> |
| From: | Michelle Yik <myik@UNIXG.UBC.CA> |
| Organization: | University of British Columbia, Vancouver, B.C., Canada |
| Subject: | Matrix format in SPSS/PC+ |
|---|
Q1:
I'm trying to produce a correlation matrix in REG and then convert the
correlation coefficients to 3 decimals. Could anyone help me out in terms
of the program statements? I tried to run the following program but was
in vain. Could someone help?
Q2:
I was able to produce a correlation matrix in REG successfully. However,
when I read the matrix with WINWORD, I saw hard return after every 8
10-column fields. I'm going to use the correlation matrix as the input
for LISREL and am wondering if hard return would have any impact on
having LISREL read the matrix appropriately.
> =================
>
> set more=off.
>
> data list file='c:data'
> free/can1fl can1flr can1y can1pr can2fl can2flr can2y can2pr
> chifl chiflr chiy chipr hkfl hkflr hky hkpr
> spafl spaflr spay spapr jpnfl jpnflr jpny jpnpr
> ugafl ugaflr ugay ugapr estfl estflr esty estpr
> turfl turflr tury turpr palfl palflr paly palpr.
>
>
> reg vars=can1fl to palpr
> /dep=can1fl/method=enter palpr/matrix=out(*).
>
> mconvert.
>
> select if rowtype_='corr'.
>
> write outfile 'corrmat'/can1fl to palpr (3).
>
> execute.
>
>
--
Michelle Yik Phone: (604) 822-2475 Fax: (604) 822-6923
University of British Columbia, Department of Psychology
2136 West Mall, Vancouver, B.C., Canada V6T 1Z4
<http://www.psych.ubc.ca/~jrussell/michelle/mich.htm>
|