Hi all,
I am trying to run score test after running a model with MLE norma distribution.
I composed a program:
"
capture program drop prog3
program define prog3
version 13
args lnf xb sigma
quietly replace `lnf'= -.5*ln(2*_pi) - ln(`sigma')- .5* ( ($ML_y1 - `xb')/`sigma')^2
end
"
Then I run my command:
ml model lf prog3 (xb: Y= X1 X2 X3) (sigma: )
ml maximize
Now How can I run a score test?
I saw from STATA that there was a command called testomit but it doesn't work.
What I did exactly:
ml model lf prog3 (xb: Y= X1 X2 X3) (sigma: ), vce(oim)
. predict double score, score
But after this step I failed to find score test like I found lrtest and wald tests (by est store restricted vs unrestricted model).
Thanks in advance for your help and suggestions
I am trying to run score test after running a model with MLE norma distribution.
I composed a program:
"
capture program drop prog3
program define prog3
version 13
args lnf xb sigma
quietly replace `lnf'= -.5*ln(2*_pi) - ln(`sigma')- .5* ( ($ML_y1 - `xb')/`sigma')^2
end
"
Then I run my command:
ml model lf prog3 (xb: Y= X1 X2 X3) (sigma: )
ml maximize
Now How can I run a score test?
I saw from STATA that there was a command called testomit but it doesn't work.
What I did exactly:
ml model lf prog3 (xb: Y= X1 X2 X3) (sigma: ), vce(oim)
. predict double score, score
But after this step I failed to find score test like I found lrtest and wald tests (by est store restricted vs unrestricted model).
Thanks in advance for your help and suggestions
Comment