我在编程方面学的不深,如果犯了低级错误,请不吝赐教和指责,谢谢作者: shiyiming 时间: 2008-10-20 20:24 标题: Re: 关于Chow Test的问题 [code:34h8cfrk]%macro QLR(num);
%do n=1 %to #
proc autoreg data=tmp;
model difs= /nlag=1 chow=&n;
run;
%end;
%mend QLR;[/code:34h8cfrk]作者: shiyiming 时间: 2009-5-6 17:05 标题: Re: 关于Chow Test的问题 there is an option in Chow Test : Chow (n1 n2 n3........) n is the cutoff you input . So you need not write a loop command, just fill in all the cutoffs you want to check in ( ).....
Sas will then give you all the results.