为什么如下最大似然估计程序无法运行,总是出现varible In_wage can not found, 恳请高手予以解答,万分感谢!
program define sig1
version 10.0
args Inf theta1 theta2
quietly replace `Inf'=-0.5*In(2*_pi)-In(`theta2') /*
*/-0.5*($ML_y1-`theta1')^(`theta2')^2
end
use e:\dta
ml model If sig1 (equation1:In_wage=ttl_exp msp age)
ml maximize