Hello, I'm using Eviews7.
I am currently doing some MLE estimation using a logl object. Apparently convregence depends strongly on the starting values of the parameters. In programming the estimation procedure, I'm using the statement parm c(1) 0 c(2) 1 etc.
I'd like to also store the starting values I'm using in my output. Any ideas how I can handle that? Thanks.
stroring starting values
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: stroring starting values
The LOGL estimation command has a showopt option that will print the starting values out in the estimation output.
Re: stroring starting values
I'm trying to solve my LOGL object consecutively for differing starting values right now. Is there a command I could use in my program, telling to delete an LOGL object, if it does not converge? (or if there comes the warning - near singular cov matrix and I get NAs for standard errors). This would be really helpful in automating the search...
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: stroring starting values
Unfortunately there is no way to get that information back, other than freezing the estimation output into a table, then searching for the terms you want to test.
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: stroring starting values
You can test whether the standard errors of the coefficients are [edit] NA and then conditionally delete the object
Last edited by EViews Glenn on Wed Mar 02, 2011 2:46 pm, edited 1 time in total.
Re: stroring starting values
Is there a way to obtain e.g. a standard error of one of the coefficients estimated in the logl?
If so, I could use an if-statement of the form
if SE = "NA" delete LOGL
would that be possible?
If so, I could use an if-statement of the form
if SE = "NA" delete LOGL
would that be possible?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: stroring starting values
Yes, although that won't help you with convergence not achieved.
Code: Select all
if logl.@stderrs(1) = na then
d logl
endif
Re: stroring starting values
thanks! That helps - if I let the program run for different starting values I won't have to sort out the ones that didn't converge by hand ...
Re: stroring starting values
Is there a way to get access to the p-value of a coefficient? I'd like to automatically delete estimation results with a very bad p-value.
I didn't find anything in the manual... thanks!
I didn't find anything in the manual... thanks!
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13603
- Joined: Tue Sep 16, 2008 5:38 pm
Re: stroring starting values
Nope, they have to be computed manually from the t-stat.
Who is online
Users browsing this forum: No registered users and 1 guest
