WARNING: No body file. HTML output will not be created.
NOTE: SCL source line.
251 ods graphics on;
--------
180
NOTE: SCL source line.
252 proc corr data=setosa nomiss nosimple cov plots=matrix ;
-----
22
76
ERROR 180-322: Statement is not valid or it is used out of proper order.
ERROR 22-322: Syntax error, expecting one of the following: ;, ALPHA, BEST, COV, CSSCP, DATA,
DEBUG, EXCLNPWGT, HOEFFDING, KENDALL, NOCORR, NOMISS, NOPRINT, NOPROB, NOSIMPLE,
OUTH, OUTK, OUTP, OUTS, PEARSON, RANK, SINGULAR, SPEARMAN, SSCP, VARDEF.
ERROR 76-322: Syntax error, statement will be ignored.
253 var sepallen sepalwid;
254 with petallen petalwid;
255 title2 'Rectangular COV and CORR Matrices';
256 run;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE CORR used:
real time 0.01 seconds
cpu time 0.01 seconds
257
NOTE: SCL source line.
258 ods graphics off;
--------
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
259 ods html close;
proc cancorr data=setosa ;
var sepallen sepalwid;
with petallen petalwid;
title2 'Rectangular COV and CORR Matrices';
run; [/code:20212]作者: shiyiming 时间: 2006-1-12 12:42 标题: Re: 对一个皮尔斯相关性的程序报错的疑问 proc corr is correct for pearson correlation. but i am not sure how the options. go check the manual.作者: shiyiming 时间: 2006-1-12 22:52 标题: 缩员 问题的源代码来自SAS的帮助,楼主挺有想象力的,把它给改了,不过SAS好象不支持这样的plot.
报错是因为加了plots=matrix .
不过还是很想问你一下,你的目标图是什么样子的?自变量和因变量各是什么?
Example 2: Computing Rectangular Correlation Statistics with Missing Data
[code:cb64d]options nodate pageno=1 linesize=80 pagesize=60;