Comments (3)
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.
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.
Thanks for considering it.
Just quick notes:
- the current draft relies on
tidyr
anddplyr
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
andhazard.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 directlytidy(prevalence.msm(model))
. - to be more generic with
broom
, it would be nice to have atidy
method that could be applied directly to amsm
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)
- Error in Pmat[x[1], x[2]] : out of bounds HOT 3
- continuous-time vs. discrete-time models HOT 4
- Add electronic health records to panel data? HOT 6
- Estimating a physical exercise model HOT 2
- Dear Dr. Jackson , I have a problem I need your help with HOT 14
- Model assessment in the case of censored states and different observation times HOT 6
- I need help with msm model HOT 2
- Questions about using weights in msm package HOT 4
- Question: How to assess or use the model HOT 7
- How does bootstrapping work in msm exactly? HOT 2
- Question about the Viterbi algorithm implementation HOT 4
- Working example of a phase-type HMM model HOT 1
- Error on observations states with exact transitions HOT 9
- Constraining transition rates to be equal HOT 1
- fixedpars to specify covariates with constraints HOT 3
- rtnorm runs forever for valid values HOT 5
- Baseline intensity constraint length when some transitions are never explicitly observed HOT 1
- msm.aggregate.data logic HOT 4
- deleted HOT 1
- Wall time restriction on optimization HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from msm.