Giter VIP home page Giter VIP logo

heemod's People

Contributors

andbe avatar daniels4321 avatar jrdnmdhl avatar kzarca avatar lionel- avatar mattwiener avatar pierucci avatar romainfrancois avatar zkabat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heemod's Issues

Add *_ functions

This package should respect lazyeval expected behaviour.

This is necessary to interface with shiny in the future.

Reorganize all vignettes

Now that the package is more or less complete, vignettes should be reorganized to be more to the point.

default for run_model()

Usually, we measure number of people being in a state.
So we should not start with only one person.

Clean globalVariables()

Functions from dplyr and ggplot2 use non-standard evaluation. This causes R CMD check to complain. globalVariables() are used to avoid that problem, but I'd rather keep those to a minimum.

Calls to globalVariables() must be audited and alternative solutions must be found whenever possible.

Reduce code bottlenecks

Bottlenecks significantly reduce the speed of iterative functions for heterogeneity and probabilistic analysis. They should be identified and improvements should be suggested.

define_state_list is an unintuitive step

Should be avoided and that step should be inside define_model; and simplified like that

mod_standard <- define_model(
  parameters = param_standard,
  transition_matrix = mat_trans,
  state A,
  state B,
  state C,
  ...
)

improve vignette

non homogeneous

  1. explain age <- floor(age/10-.5)*10+5
  2. replace merge(data.frame(age = age, sex = sex), death_prob)$mr by death_prob[death_prob$age == age & death_prob$sex == sex, "mr"] (more intuitive)
  3. standardRR should be renamed
  4. define markov_cycle variable
  5. should set the variables standard treatment costs 394 and NP1 costs 579 somewhere in the text and in the code (not at the end)

homogeneous

Write framework to generate probabilistic newdata

Need the following steps:

  1. Ability to run model with new data.
  2. Generate new data from arbitrary distributions with correlation structure.
  3. Provide interface to specify parameter distribution and correlation structure.
  4. Provide convenience functions to specify distribution density for all kind of parameters.

C is not informative in a plot function

Should be replaced by its abstract value (although being an equation probably difficult to solve).
For instance
for this line : C 0.202 * rr 0.067 * rr 0.01 * rr
C should be output like 0.721rr

Fix define_resample code

The code of define_resample() works, but is incredibly messy and probably too complex for what it does.

This is a recipe for bugs and headaches. This part of the package should be refactored.

No named state warning

No named state -> generating names: we should show this warning at define_matrix() function and not afte

Support different counting options

Should support:

  • Beginning of cycle;
  • End of cycle;
  • Half cycle correction;
  • Life-year correction.

Which method should be left by default is open to debate.

non comparative model and summary function

summary function shouldn't output .cost, .effect and .icer when there is no comparison between several strategies. Or replace values with NA
Same remark for the less costly strategy

unevaluated state warning

An unevaluated state with 2 values: The term "unevaluated" leads to confusion and I think we should remove it.

Can we easily omit define_model()?

It seems to be a step which could be inside run_model.

run_model(
  transition_matrix = mat_trans,
  state_A,
  state_B,
  cycles = 10,
  cost = cost,
  effect = utility
)

uninformative output

res_mod_1

## 1 Markov model, run for 10 cycles.
## 
## Model name:
## 
## A

Perhaps we could replace that output by the summary function output?

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.