全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SPSS论坛
8187 6
2005-11-22
请各位大虾指点迷津
二维码

扫码加我 拉你入群

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

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

全部回复
2006-5-17 03:23:00

A NOTE ON CANONICAL CORRELATION ANALYSIS IN SPSS

The SPSS menu does not offer canonical correlation analysis. There are two ways to get it, both requiring the use of syntax. One is to use the Canonical correlation.sps macro. The macro is a part of the SPSS package and can be found in a subdirectory where SPSS is installed. The other way is to use MANOVA with DISCRIM subcommand.

To use MANOVA, type the following in the syntax window:

MANOVA set1 WITH set2
/DISCRIM ALL ALPHA(1)
/PRINT SIG(EIG DIM).
Replace set 1 and set2 with the variable lists. Then run the program by selecting Run from the menu (be sure that your data set is open in the data window).

To use the canonical correlation macro,locate the file Canonical correlation.sps on your computer. Suppose that it is in c:\Program Files\spss. In the syntax window, type

include file 'c:\Program files\spss\canonical correlation.sps'.
cancorr set1=var1 var2 var3
/set2=var4 var5 var6.
Replace var1-var6 with variable names to be used in the canonical correlation analysis.

The outputs are not exactly the same. The MANOVA output contains also multivariate regression results in addition to canonical correlation analysis. The canonical correlation coefficients in the macro output have the same values, but opposite signs to the ones in the MANOVA output. The table names are also different, for example, the correlations between the variables under analysis and canonical variables are called loadings in the macro output.

二维码

扫码加我 拉你入群

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

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

2006-5-17 03:25:00

[此贴子已经被作者于2006-5-17 3:32:12编辑过]

二维码

扫码加我 拉你入群

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

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

2007-7-15 17:53:00

学习中

呵呵

二维码

扫码加我 拉你入群

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

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

2007-7-15 21:37:00

谢谢大侠的分享,想请教你在spss11.5中,打开Canonical Correlation.sps,如下所示:

preserve.
set printback=off.
define cancorr (set1 =!charend('/')
/set2 =!charend('/')
/debug =!charend('/') !DEFAULT ('N')
/KEEPSC=!charend('/') !DEFAULT ('Y')
/PRCOR =!charend('/') !DEFAULT (25 ) ).
preserve.
!IF ( !DEBUG !EQ 'N') !THEN
set printback=off mprint off.
!ELSE
set printback on mprint on.
!IFEND .
........................

我的问题是:这里要怎么套用上面的格式(

include file 'c:\Program files\spss\canonical correlation.sps'.
cancorr set1=var1 var2 var3
/set2=var4 var5 var6.)我尝试了,但是不理想,出不来结果,想请教大侠,具体要怎么操作,能否更直接说明一下
二维码

扫码加我 拉你入群

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

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

2007-7-17 22:07:00
大家支持一下这个论题!!
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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