Giter Club home page Giter Club logo

Comments (6)

andykrause avatar andykrause commented on July 21, 2024

Simon: Thanks for reaching out. The weighted option for repeat transaction (rt) or weighted repeat sales approach defaults to the weighting proposed by Case and Shiller (http://www.econ.yale.edu/~shiller/pubs/p0781.pdf; https://www.nber.org/papers/w2393.pdf). You can add other weighting, but if you don't this default is used. Since there is no default for WLS in the hedIndex approach you must supply them if you hope to run a weighted model.

Perhaps I should clarify this in the documentation for my next release.

Thank you for reaching out and let me know if you have any other questions.

from hpir.

SimonMelamed avatar SimonMelamed commented on July 21, 2024

from hpir.

SimonMelamed avatar SimonMelamed commented on July 21, 2024

from hpir.

andykrause avatar andykrause commented on July 21, 2024

Simon: Regarding the 'You have supplied...' error message about weights, that error should only show if the length of the weights vector that you supplied is not the same length as the number of rows in your data. If you can send a reproducible example, i'll try to debug and see if the problem is on my end.

from hpir.

andykrause avatar andykrause commented on July 21, 2024

Simon: Actually, I see the problem. If you use the wrapper function (hedIndex) and some of the records are removed due to having two sales of same property in the same period (mostly likely if using a annual or quarterly periodicity), then the weights will be the wrong length. Its a bug on my end. Thanks for bringing to my attention.

from hpir.

andykrause avatar andykrause commented on July 21, 2024

Simon: Implemented a fix here. remotes::install_github("andykrause/hpiR") should get you the fixed version. I'll push this update to CRAN with my next version update.

Thanks for reporting the bug!

from hpir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.