楼主: xinni0719
9137 16

[问答] SPSS15 典型相关分析 怎么做的啊? [推广有奖]

  • 0关注
  • 0粉丝

初中生

4%

还不是VIP/贵宾

-

威望
0
论坛币
14 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
249 点
帖子
14
精华
0
在线时间
8 小时
注册时间
2008-1-6
最后登录
2014-5-6

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
这是我的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.
二维码

扫码加我 拉你入群

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

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

关键词:SPSS15 典型相关分析 典型相关 相关分析 SPSS 典型相关分析

沙发
xinni0719 发表于 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了,我做不出来,谁能教下我呀!!

使用道具

藤椅
syln 发表于 2009-12-25 15:19:28 |只看作者 |坛友微信交流群
看不懂!深奥!
男人的肩膀,别害怕累赘,要背负一身重担才能高飞.

使用道具

板凳
xinni0719 发表于 2009-12-25 15:34:33 |只看作者 |坛友微信交流群
好着急的啊,懂的人说下咯,来生做牛做马报答您

使用道具

报纸
hxh974291 发表于 2009-12-25 21:29:05 |只看作者 |坛友微信交流群
spss应该不能做典型相关分析吧,除非你是正版的,要用sas分析可以的:

使用道具

地板
hxh974291 发表于 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;

使用道具

7
icysmile2009 发表于 2009-12-25 22:22:50 |只看作者 |坛友微信交流群
语句和你在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.

看来象是get file后面忘了“=”号,所以文件没打开。
如果不是忘了get file='f://...',就不知是什么原因了。

使用道具

8
fermentation1 发表于 2009-12-26 08:43:39 |只看作者 |坛友微信交流群
我也看不懂啊

使用道具

9
xinni0719 发表于 2009-12-26 19:12:34 |只看作者 |坛友微信交流群
谢谢你!我是网上下的,不是正版的,不过你写的句子我看不太明白,我从网上找的例子,都是像我那种的,你那种我不懂。 5# hxh974291

使用道具

10
xinni0719 发表于 2009-12-26 19:19:04 |只看作者 |坛友微信交流群
加了=号还是不行啊!而且我是打开了.sav的,然后再新建了一个syntax运行的。
难道真的是正版问题吗?

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-2 02:28