<p>下面的程序是从SAS\qlim中摘出来的,你可以去看看qlim,对你应该有帮助,程序简单理论却较复杂。</p><p><font size="1">proc qlim data=mroz;<br/> model inlf = nwifeinc educ exper expersq age kidslt6 kidsge6 /discrete;<br/> model lwage = educ exper expersq / </font><font size="1"><strong>select(inlf=1);<br/></strong> run;<br/>inlf为一个二分类的变量,lwage为连续性变量,但lwage只有在inlf取值为1时才能被测量到,即所谓样本选择。</font></p>
(为mroz的数据及对应的样本选择程序)<br/>
[此贴子已经被作者于2008-5-30 8:18:51编辑过]