Time series regression with all coefficient result of 1
Posted: Thu Jan 31, 2019 1:49 pm
Hello
I am trying to fit a regression model for attached data.The problem I'm having is that I get back coefficient value of 1 for all independent variables. Maybe my process is wrong. Here's what I'm doing and I wondered if anyone can help me please.
online_visits and offline_visits are my independent variables.
total_visits is my dependent variable.
When I run the regression
ls total_visits c online_visits offline_visits
I get a coefficient value of 1 for both online_visits and offline_visits. Both are significant. I'm expecting offline to be lower than online as the values are much lower.
After reading various things online, I looked at Unit Root Test. I found dependent variables are not stationary without the intercept and trend. So I differenced the series to make it stationary.
ls d(total_visits) c d(online_visits) d(offline_visits)
And getting 1 for coefficients.
Correlogram shows significant autocorrelation at lag 1 and partial correlation at lags 1, 2 and 7. So I tried
ls d(total_visits) c d(online_visits) d(offline_visits) ma(1) ar(1) ar(2) ar(7)
but that gives my an error:
Log of non positive number
Can anyone help me on how do I fit the model properly using EViews or why I get 1s for coefficients please?
Many thanks
Emily
I am trying to fit a regression model for attached data.The problem I'm having is that I get back coefficient value of 1 for all independent variables. Maybe my process is wrong. Here's what I'm doing and I wondered if anyone can help me please.
online_visits and offline_visits are my independent variables.
total_visits is my dependent variable.
When I run the regression
ls total_visits c online_visits offline_visits
I get a coefficient value of 1 for both online_visits and offline_visits. Both are significant. I'm expecting offline to be lower than online as the values are much lower.
After reading various things online, I looked at Unit Root Test. I found dependent variables are not stationary without the intercept and trend. So I differenced the series to make it stationary.
ls d(total_visits) c d(online_visits) d(offline_visits)
And getting 1 for coefficients.
Correlogram shows significant autocorrelation at lag 1 and partial correlation at lags 1, 2 and 7. So I tried
ls d(total_visits) c d(online_visits) d(offline_visits) ma(1) ar(1) ar(2) ar(7)
but that gives my an error:
Log of non positive number
Can anyone help me on how do I fit the model properly using EViews or why I get 1s for coefficients please?
Many thanks
Emily