Coder Social home page Coder Social logo

rsk's People

Contributors

rwalk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

rsk's Issues

Implement maximum likelihood estimator

Jo's paper provides a maximum likelihood estimator that allows us to leave more model parameters unspecified. This is important because the current implementation requires quite a bit of information to be provided via parameters and it may be difficult to have this info up front.

Interface needs to support ragged data sizes

Currently, the interface expects that the same number of individuals appear in each period which is not realistic.

To resolve this:

  • Move aggregate_method out of the RSK class and into a util class.
  • Refactor data input structure to list of matrices. The list dimension will hold time slices and the matrices will be n_individuals x n_vars. at time t.
  • It may be helpful for addressing #5 to add class to support panels. This would allow us to compute the structure matrix J_t more easily which is an ingredient to our computation of the RSK filter with multiple groups.

Add support for group structures.

Currently, we support only a total mean over all individuals. Jo's paper actually allows for means computed on a per group basis. It should be straightforward to support grouped means in the current code, however we'll have to think about a good API for specifying the grouping.

Add an interface to pandas

To actually fit this on survey data, we'll want a nice way to specify the cross-sectional identifiers, time series, and observed variables. Seems like an interface with Pandas might make the most sense for this in the Python world.

Currently, we've implemented a custom panel data type interface. It's not obvious (to me at least) how to interface properly with Pandas but maybe someone with experience can figure it out.

Implement an R port

This project might ultimately be a better fit for the R language where there is much richer support for statistical analysis, factor labels, and survey data.

A pure R implementation of the RSK algo will probably be sufficiently fast as R will just offload the heavy matrix computations to core linear algebra libraries.

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.