SAS中文论坛

标题: 求助 [打印本页]

作者: shiyiming    时间: 2010-11-27 22:19
标题: 求助
请教各位大侠,x1,x2,...,xn服从正态分布,要检验H0:mu=0,sigma=1 <-> H1:not H0,在H0下,对于n=30重复2000次模拟其lrt统计量的分布?这个怎么编程实现呢?
O(∩_∩)O谢谢
作者: shiyiming    时间: 2010-11-28 18:28
标题: Re: 求助
[code:1a498wn1]data normal;
        call streaminit(13245);
        array x[30] x1-x30;
        do times = 1 to 2000;
                do i = 1 to dim(x);
                        x[i] = rand('Normal',0,1);
                end;
                output;
                drop i;
        end;
run;[/code:1a498wn1]
作者: shiyiming    时间: 2010-11-29 11:06
标题: Re: 求助
什么是lrt?
作者: shiyiming    时间: 2010-12-4 15:00
标题: Re: 求助
to jingju11
就是极大似然统计量
作者: shiyiming    时间: 2010-12-5 11:35
标题: Re: 求助
likelihood ratio test
Is that statistic by ChiSq test?




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2