全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SPSS论坛
10003 16
2009-12-25
这是我的syntax语句
get file 'F:\Program Files\SPSS15\zuojinwan.sav'.
INCLUDE 'F:\Program Files\SPSS15\Canonical correlation.sps'.
CANCORR SET1=y1 y2 /   
       SET2=V1 V2 V3 V4 V5 V6 V7 /.

我先打开一个.sav,然后我路径下也有Canonical correlation.sps,到底哪里错了啊?

>Error # 31.  Command name: GET FILE
>File not found.
>This command not executed.

>Error # 4285 in column 80.  Text: COL1
>Incorrect variable name: either the name is more than 64 characters, or it
>is not defined by a previous command.
>This command not executed.

>Error # 4285 in column 19.  Text: N_A
>Incorrect variable name: either the name is more than 64 characters, or it
>is not defined by a previous command.
>This command not executed.

>Error # 4023 in column 17.  Text: @NMA
>An expression contains a string of characters followed by a left
>parenthesis, indicating that the string of characters is a function or
>vector name, but the characters do not match any existing function or
>vector.  Check the spelling.
>This command not executed.
C


>Error # 4023 in column 17.  Text: COEF
>An expression contains a string of characters followed by a left
>parenthesis, indicating that the string of characters is a function or
>vector name, but the characters do not match any existing function or
>vector.  Check the spelling.
>This command not executed.

>Error # 4285 in column 66.  Text: @COEF@
>Incorrect variable name: either the name is more than 64 characters, or it
>is not defined by a previous command.
>This command not executed.

>Error # 4045.  Command name: END LOOP
>The END LOOP command does not follow an unclosed LOOP command.  Maybe the
>LOOP command was not recognized because of an error.  Use the
>level-of-control shown to the left of the SPSS commands to determine the
>range of LOOPs and DO IFs.
>This command not executed.

>Error # 4285 in column 17.  Text: N_B
>Incorrect variable name: either the name is more than 64 characters, or it
>is not defined by a previous command.
>This command not executed.

>Error # 4023 in column 17.  Text: @NMB
>An expression contains a string of characters followed by a left
>parenthesis, indicating that the string of characters is a function or
>vector name, but the characters do not match any existing function or
>vector.  Check the spelling.
>This command not executed.

>Error # 4023 in column 17.  Text: COEF
>An expression contains a string of characters followed by a left
>parenthesis, indicating that the string of characters is a function or
>vector name, but the characters do not match any existing function or
>vector.  Check the spelling.
>This command not executed.

>Error # 4285 in column 66.  Text: @COEF@
>Incorrect variable name: either the name is more than 64 characters, or it
>is not defined by a previous command.
>This command not executed.
C


>Error # 4045.  Command name: END LOOP
>The END LOOP command does not follow an unclosed LOOP command.  Maybe the
>LOOP command was not recognized because of an error.  Use the
>level-of-control shown to the left of the SPSS commands to determine the
>range of LOOPs and DO IFs.
>This command not executed.

>Error # 2302 in column 12.  Text: canonical_correlation_size_.sav
>The specified file does not exist and cannot be erased.
>This command not executed.

>Error # 2302 in column 12.  Text: canonical_correlation_AB_.sav
>The specified file does not exist and cannot be erased.
>This command not executed.
The canonical scores have been written to the active dataset.
Also, a file containing an SPSS Scoring program has been written
To use this file, GET a system file with the SAME variables
that were used in the present analysis.  Then use an INSERT command
to run the scoring program.
For example :
GET FILE anotherfilename
INSERT FILE= 'canonical_correlation_scoring_syntax_.sps' .
EXECUTE.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2009-12-25 15:12:02
单独运行INCLUDE 'F:\Program Files\SPSS15\Canonical correlation.sps'.则出现以下的,是正常的吗?

DATASET ACTIVATE canonical_correlation_active_data_.
INCLUDE 'F:\Program Files\SPSS15\Canonical correlation.sps'.
1721  * Canonical correlation.sps.  This version allows long variable names and
         uses datasets.Canonical correlation.sps.
1722  
1724  preserve.
1726  set printback=off.
2430  RESTORE.
2431  
2433  * End of INSERT and INCLUDE nesting level 01.

我为了做这个,已经装了spss13,15和16了,我做不出来,谁能教下我呀!!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-12-25 15:19:28
看不懂!深奥!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-12-25 15:34:33
好着急的啊,懂的人说下咯,来生做牛做马报答您
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-12-25 21:29:05
spss应该不能做典型相关分析吧,除非你是正版的,要用sas分析可以的:
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-12-25 21:35:31
语法为:data a1 (type=corr);
input_name_$ x1-x6 y1 y2;
_type_='corr';
cards;
数据
run;
proc cancorr data=a1 edf=样本量-1 red;
var x1-x9;
with y1 y2;
run;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群