I'm trying to do the likelihood ratio test between two linear models. What command should I use. I used the command, but did not yield any result.
the command:
scalar lr = -2*(modelolinear2.@logl - modelolinear1.@logl)
scalar q =1
scalar lr_pval = 1 - @cchisq(lr,q)
Likelihood ratio test
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Likelihood ratio test
Could you be more specific? What do you mean "did not yield any result"? Were the scalars created?
Re: Likelihood ratio test
Gareth, I saw this post only after I posted mine in a different string. I thought I may post here as well in case other users face similar issues in the future. In my case, E-views sends an error message saying "LR is not defined". What could possibly be the reason?Could you be more specific? What do you mean "did not yield any result"? Were the scalars created?
Kindly,
Ben
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Likelihood ratio test
Probably means you're referencing something called LR, which doesn't exist.
-
startz
- Non-normality and collinearity are NOT problems!
- Posts: 3798
- Joined: Wed Sep 17, 2008 2:25 pm
Re: Likelihood ratio test
Check to see whether the scalar lr was created after the line
The last command should work.
Code: Select all
scalar lr = -2*(modelolinear2.@logl - modelolinear1.@logl)Who is online
Users browsing this forum: No registered users and 1 guest
