Giter Site home page Giter Site logo

broom::tidy method for msm models about msm HOT 3 CLOSED

chjackson avatar chjackson commented on September 28, 2024 1
broom::tidy method for msm models

from msm.

Comments (3)

larmarange avatar larmarange commented on September 28, 2024 2

In case it could be useful for watching what could be the result of some tidiers for msm, a draft of very basic tidiers could be found at https://github.com/larmarange/JLutils/blob/master/R/tidy_msm.R

Best regards

from msm.

chjackson avatar chjackson commented on September 28, 2024 1

I think this would be a great addition, but adding new features to msm is low priority for me at the moment. So I'd encourage others to write these, as you have done, especially since a feature like this doesn't need to know msm internals. I'll make a note to test out what you've written - I've not used broom myself, but I like tidyverse stuff.

from msm.

larmarange avatar larmarange commented on September 28, 2024

Thanks for considering it.

Just quick notes:

  • the current draft relies on tidyr and dplyr but it should be possible to rewrite them if you want to avoid importing some of their functions
  • for simplicity, I just wrote tidiers for the output of prevalence.msm and hazard.msm. For a better implementation, it should be possible to add a class to the output of each of these functions, so it would be possible to call directly tidy(prevalence.msm(model)).
  • to be more generic with broom, it would be nice to have a tidy method that could be applied directly to a msm model, with the same generic arguments that those used in other model tidiers. However, it will require to clarify that should be returned in that case. Maybe the hazard ratios?

Regards

from msm.

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.