You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scotland doesn't publish housing stock ages for small areas. This means we cannot take the same approach we have done in England and Wales.
Scotland does however provide some estimates for housing stock from the Scottish housing condition survey at the local authority level.
As housing age is a significant predictor of energy efficiency and EPCs are biased towards newer properties we want to retain some control over this factor.
A potential solution is to use multi-level iterative proportional fitting, which would constrain the weighting solution to the lsoa-level margins where available and a set of lsoas to their respective la-level housing stock age margin.
The algorithm for doing this multi-level adjustment is only (to our knowledge) publicly implemented in R (package: mlfit), therefore this issue will explore the possibility of using this appraoch via an interface with python (rpy2).
demonstrate rpy2 interface.
demonstrate reweighting with mlfit.
An alternative would be to redevelop the functionality in python. However, this would take some time as the existing R package is quite mature. Although the algorithm is reasonably straightforward to reproduce, the data reshaping required is quite involved and would likely take time to get right.
The text was updated successfully, but these errors were encountered:
Scotland doesn't publish housing stock ages for small areas. This means we cannot take the same approach we have done in England and Wales.
Scotland does however provide some estimates for housing stock from the Scottish housing condition survey at the local authority level.
As housing age is a significant predictor of energy efficiency and EPCs are biased towards newer properties we want to retain some control over this factor.
A potential solution is to use multi-level iterative proportional fitting, which would constrain the weighting solution to the lsoa-level margins where available and a set of lsoas to their respective la-level housing stock age margin.
The algorithm for doing this multi-level adjustment is only (to our knowledge) publicly implemented in R (package: mlfit), therefore this issue will explore the possibility of using this appraoch via an interface with python (rpy2).
mlfit
.An alternative would be to redevelop the functionality in python. However, this would take some time as the existing R package is quite mature. Although the algorithm is reasonably straightforward to reproduce, the data reshaping required is quite involved and would likely take time to get right.
The text was updated successfully, but these errors were encountered: