Page 1 of 1

Computing an output matrix with NA values

Posted: Sun Jan 31, 2010 7:46 am
by marco_15
Hi,

I am estimating several equations by OLS, and I want to compute the t-stats of the parameters in a single vector/matrix/table/whatever:

for !i = 1 to 20

matrix(!i,1) output_tstats
output_tstats(!i,1) = equation!i.@tstat(3)

However, some of the t-stats take the values NA as there is a singular matrix. Hence, when computing the output it stops at the first NA warning me with a message like "Not possible to divide by 0".

I tried several coding tricks to still compute the thing, but it doesnt work, the issue remains.

Does anyone has an idea on how to create such a sum-up of t-stats when some are NA? Eviews 4.1 does not seem to know how to deal with it.

Thanks

Re: Computing an output matrix with NA values

Posted: Sun Jan 31, 2010 10:25 am
by EViews Gareth
Don't have a copy of EViews 4.1, but can't you just program around it. Something like:

Code: Select all

if equation!i.@tstat(3) <> NA then output_tstat(!i,1) = equation!i.@tstat(3) endif

Re: Computing an output matrix with NA values

Posted: Thu Feb 04, 2010 9:38 am
by marco_15
Hi,

Thank you for your reply.

Unfortunately it does not work to program it.

Thx again