Skip to main content
deleted 7 characters in body; edited tags
Source Link
User1865345
  • 10.3k
  • 12
  • 23
  • 40

I have 100 geographical regions in a country. For each region the total number of houses and the number of vacant houses have been collected yearly over 20 years. I have also some other economic indicators at the country level (GDP, interest rate etc.). Now, given the forecasts for these indicators for next year, I want to forecast next year vacancy rate.

I have first used an auto-regressive mixed-effect model in R (package lme4) where the vacancy rate (computed as the ratio of vacant houses over the total number of houses) in a region depends on the last year's vacancy rate, the mean vacancy rate of neighboring regions, GDP and interest rate.

The problem with this model is that the vacancy rate can go outside the range [0,1], which obviously does not make sense. I need to restrict the range of the vacancy rate: a simple fix is restricting ex post.

Does anybody have experience with such models? I think that I can use some mixed multinomial logit model probably.

I would appreciate if you could provide guidance along with some R code.

Regards

I have 100 geographical regions in a country. For each region the total number of houses and the number of vacant houses have been collected yearly over 20 years. I have also some other economic indicators at the country level (GDP, interest rate etc.). Now, given the forecasts for these indicators for next year, I want to forecast next year vacancy rate.

I have first used an auto-regressive mixed-effect model in R (package lme4) where the vacancy rate (computed as the ratio of vacant houses over the total number of houses) in a region depends on the last year's vacancy rate, the mean vacancy rate of neighboring regions, GDP and interest rate.

The problem with this model is that the vacancy rate can go outside the range [0,1], which obviously does not make sense. I need to restrict the range of the vacancy rate: a simple fix is restricting ex post.

Does anybody have experience with such models? I think that I can use some mixed multinomial logit model probably.

I would appreciate if you could provide guidance along with some R code.

Regards

I have 100 geographical regions in a country. For each region the total number of houses and the number of vacant houses have been collected yearly over 20 years. I have also some other economic indicators at the country level (GDP, interest rate etc.). Now, given the forecasts for these indicators for next year, I want to forecast next year vacancy rate.

I have first used an auto-regressive mixed-effect model in R (package lme4) where the vacancy rate (computed as the ratio of vacant houses over the total number of houses) in a region depends on the last year's vacancy rate, the mean vacancy rate of neighboring regions, GDP and interest rate.

The problem with this model is that the vacancy rate can go outside the range [0,1], which obviously does not make sense. I need to restrict the range of the vacancy rate: a simple fix is restricting ex post.

Does anybody have experience with such models? I think that I can use some mixed multinomial logit model probably.

I would appreciate if you could provide guidance along with some R code.

deleted 740 characters in body
Source Link
teucer
  • 2.1k
  • 2
  • 20
  • 29

I have 100 geographical regions in a country. For each region the total number of houses and the number of vacant houses have been collected yearly over 20 years. I have also some other economic indicators at the country level (GDP, interest rate etc.). Now, given the forecasts for these indicators for next year, I want to forecast next year vacancy rate.

I have first used an auto-regressive mixed-effect model in R (package lme4) where the vacancy rate (computed as the ratio of vacant houses over the total number of houses) in a region depends on the last year's vacancy rate, the mean vacancy rate of neighboring regions, GDP and interest rate.

The problem with this model is that the vacancy rate can go outside the range [0,1], which obviously does not make sense. I need to restrict the range of the vacancy rate: a simple fix is restricting ex post.

Does anybody have experience with such models? I think that I can use some mixed multinomial logit model probably.

I would appreciate if you could provide guidance along with some R code.

Regards

EDIT:

Here the actual code I am using for the mixed effect model:

lmer(log(vr)~log(l1vr)+l1mvr+gdp+ir+(l1mvr+log(l1vr)-1|reg),mdata)

where

  1. vr is the vacancy rate ($vr=(v^1_2,v^1_3,...,v^1_{20},v^2_2,...,v^{100}_{20})$ with $v^r_t$ vacancy rate in region $r$ at time $t$)
  2. l1vr is lagged vacancy rate ($l1vr=(v^1_1,v^1_2,...,v^1_{19},v^2_1,...,v^{100}_{19})$)
  3. l1mvr mean log vacancy rate of the neighbors
  4. gdp is the GDP ($gdp=(g^1_2,g^1_3,...,g^1_{20},g^2_2,...,g^{100}_{20})$)
  5. ir is the interest rate ($ir=(ir^1_2,ir^1_3,...,ir^1_{20},ir^2_2,...,ir^{100}_{20})$)
  6. reg is the region indicator

In this specification the vacancy rate stays positive but might go over 100%...

I have 100 geographical regions in a country. For each region the total number of houses and the number of vacant houses have been collected yearly over 20 years. I have also some other economic indicators at the country level (GDP, interest rate etc.). Now, given the forecasts for these indicators for next year, I want to forecast next year vacancy rate.

I have first used an auto-regressive mixed-effect model in R (package lme4) where the vacancy rate (computed as the ratio of vacant houses over the total number of houses) in a region depends on the last year's vacancy rate, the mean vacancy rate of neighboring regions, GDP and interest rate.

The problem with this model is that the vacancy rate can go outside the range [0,1], which obviously does not make sense. I need to restrict the range of the vacancy rate: a simple fix is restricting ex post.

Does anybody have experience with such models? I think that I can use some mixed multinomial logit model probably.

I would appreciate if you could provide guidance along with some R code.

Regards

EDIT:

Here the actual code I am using for the mixed effect model:

lmer(log(vr)~log(l1vr)+l1mvr+gdp+ir+(l1mvr+log(l1vr)-1|reg),mdata)

where

  1. vr is the vacancy rate ($vr=(v^1_2,v^1_3,...,v^1_{20},v^2_2,...,v^{100}_{20})$ with $v^r_t$ vacancy rate in region $r$ at time $t$)
  2. l1vr is lagged vacancy rate ($l1vr=(v^1_1,v^1_2,...,v^1_{19},v^2_1,...,v^{100}_{19})$)
  3. l1mvr mean log vacancy rate of the neighbors
  4. gdp is the GDP ($gdp=(g^1_2,g^1_3,...,g^1_{20},g^2_2,...,g^{100}_{20})$)
  5. ir is the interest rate ($ir=(ir^1_2,ir^1_3,...,ir^1_{20},ir^2_2,...,ir^{100}_{20})$)
  6. reg is the region indicator

In this specification the vacancy rate stays positive but might go over 100%...

I have 100 geographical regions in a country. For each region the total number of houses and the number of vacant houses have been collected yearly over 20 years. I have also some other economic indicators at the country level (GDP, interest rate etc.). Now, given the forecasts for these indicators for next year, I want to forecast next year vacancy rate.

I have first used an auto-regressive mixed-effect model in R (package lme4) where the vacancy rate (computed as the ratio of vacant houses over the total number of houses) in a region depends on the last year's vacancy rate, the mean vacancy rate of neighboring regions, GDP and interest rate.

The problem with this model is that the vacancy rate can go outside the range [0,1], which obviously does not make sense. I need to restrict the range of the vacancy rate: a simple fix is restricting ex post.

Does anybody have experience with such models? I think that I can use some mixed multinomial logit model probably.

I would appreciate if you could provide guidance along with some R code.

Regards

added 85 characters in body
Source Link
teucer
  • 2.1k
  • 2
  • 20
  • 29

I have 100 geographical regions in a country. For each region the total number of houses and the number of vacant houses have been collected yearly over 20 years. I have also some other economic indicators at the country level (GDP, interest rate etc.). Now, given the forecasts for these indicators for next year, I want to forecast next year vacancy rate.

I have first used an auto-regressive mixed-effect model in R (package lme4) where the vacancy rate (computed as the ratio of vacant houses over the total number of houses) in a region depends on the last year's vacancy rate, the mean vacancy rate of neighboring regions, GDP and interest rate.

The problem with this model is that the vacancy rate can go outside the range [0,1], which obviously does not make sense. I need to restrict the range of the vacancy rate: a simple fix is restricting ex post.

Does anybody have experience with such models? I think that I can use some mixed multinomial logit model probably.

I would appreciate if you could provide guidance along with some R code.

Regards

EDIT:

Here the actual code I am using for the mixed effect model:

lmer(log(vr)~log(l1vr)+l1mvr+gdp+ir+(l1mvr+log(l1vr)-1|reg),mdata)

where

  1. vr is the vacancy rate ($vr=(v^1_2,v^1_3,...,v^1_{20},v^2_2,...,v^{100}_{20})$ with $v^r_t$ vacancy rate in region $r$ at time $t$)
  2. l1vr is lagged vacancy rate ($l1vr=(v^1_1,v^1_2,...,v^1_{19},v^2_1,...,v^{100}_{19})$)
  3. l1mvr mean log vacancy rate of the neighbors
  4. gdp is the GDP ($gdp=(g^1_2,g^1_3,...,g^1_{20},g^2_2,...,g^{100}_{20})$)
  5. ir is the interest rate ($ir=(ir^1_2,ir^1_3,...,ir^1_{20},ir^2_2,...,ir^{100}_{20})$)
  6. reg is the region indicator

In this specification the vacancy rate stays positive but might go over 100%...

I have 100 geographical regions in a country. For each region the total number of houses and the number of vacant houses have been collected yearly over 20 years. I have also some other economic indicators at the country level (GDP, interest rate etc.). Now, given the forecasts for these indicators for next year, I want to forecast next year vacancy rate.

I have first used an auto-regressive mixed-effect model in R (package lme4) where the vacancy rate (computed as the ratio of vacant houses over the total number of houses) in a region depends on the last year's vacancy rate, the mean vacancy rate of neighboring regions, GDP and interest rate.

The problem with this model is that the vacancy rate can go outside the range [0,1], which obviously does not make sense. I need to restrict the range of the vacancy rate: a simple fix is restricting ex post.

Does anybody have experience with such models? I think that I can use some mixed multinomial logit model probably.

I would appreciate if you could provide guidance along with some R code.

Regards

EDIT:

Here the actual code I am using for the mixed effect model:

lmer(log(vr)~log(l1vr)+l1mvr+gdp+ir+(l1mvr+log(l1vr)-1|reg),mdata)

where

  1. vr is the vacancy rate ($vr=(v^1_2,v^1_3,...,v^1_{20},v^2_2,...,v^{100}_{20})$ with $v^r_t$ vacancy rate in region $r$ at time $t$)
  2. l1vr is lagged vacancy rate ($l1vr=(v^1_1,v^1_2,...,v^1_{19},v^2_1,...,v^{100}_{19})$)
  3. l1mvr mean log vacancy rate of the neighbors
  4. gdp is the GDP ($gdp=(g^1_2,g^1_3,...,g^1_{20},g^2_2,...,g^{100}_{20})$)
  5. ir is the interest rate ($ir=(ir^1_2,ir^1_3,...,ir^1_{20},ir^2_2,...,ir^{100}_{20})$)
  6. reg is the region indicator

I have 100 geographical regions in a country. For each region the total number of houses and the number of vacant houses have been collected yearly over 20 years. I have also some other economic indicators at the country level (GDP, interest rate etc.). Now, given the forecasts for these indicators for next year, I want to forecast next year vacancy rate.

I have first used an auto-regressive mixed-effect model in R (package lme4) where the vacancy rate (computed as the ratio of vacant houses over the total number of houses) in a region depends on the last year's vacancy rate, the mean vacancy rate of neighboring regions, GDP and interest rate.

The problem with this model is that the vacancy rate can go outside the range [0,1], which obviously does not make sense. I need to restrict the range of the vacancy rate: a simple fix is restricting ex post.

Does anybody have experience with such models? I think that I can use some mixed multinomial logit model probably.

I would appreciate if you could provide guidance along with some R code.

Regards

EDIT:

Here the actual code I am using for the mixed effect model:

lmer(log(vr)~log(l1vr)+l1mvr+gdp+ir+(l1mvr+log(l1vr)-1|reg),mdata)

where

  1. vr is the vacancy rate ($vr=(v^1_2,v^1_3,...,v^1_{20},v^2_2,...,v^{100}_{20})$ with $v^r_t$ vacancy rate in region $r$ at time $t$)
  2. l1vr is lagged vacancy rate ($l1vr=(v^1_1,v^1_2,...,v^1_{19},v^2_1,...,v^{100}_{19})$)
  3. l1mvr mean log vacancy rate of the neighbors
  4. gdp is the GDP ($gdp=(g^1_2,g^1_3,...,g^1_{20},g^2_2,...,g^{100}_{20})$)
  5. ir is the interest rate ($ir=(ir^1_2,ir^1_3,...,ir^1_{20},ir^2_2,...,ir^{100}_{20})$)
  6. reg is the region indicator

In this specification the vacancy rate stays positive but might go over 100%...

added 657 characters in body
Source Link
teucer
  • 2.1k
  • 2
  • 20
  • 29
Loading
Tweeted twitter.com/#!/StackStats/status/29900249854115844
Source Link
teucer
  • 2.1k
  • 2
  • 20
  • 29
Loading