Function dlog(x) in eviews gives values as NA
Posted: Mon Nov 09, 2015 11:21 am
Hi,
I am calculating returns of stock prices in a panel data format. I have calculated the returns as follows.
return_i=dlog(price)
Out of all the observations there is a bug that gives the value as "NA" for 1 particular stock. I have gone through the imported(raw) data and it does not contain any NA's also there seems to be no problem with the dates. I have tried calculating the returns in a new work file just for this stock and it calculated the returns correctly. however, it seems to create a problem when used with the entire sample. Please help :)
I am calculating returns of stock prices in a panel data format. I have calculated the returns as follows.
return_i=dlog(price)
Out of all the observations there is a bug that gives the value as "NA" for 1 particular stock. I have gone through the imported(raw) data and it does not contain any NA's also there seems to be no problem with the dates. I have tried calculating the returns in a new work file just for this stock and it calculated the returns correctly. however, it seems to create a problem when used with the entire sample. Please help :)