Git Product home page Git Product logo

postpi's People

Contributors

jtleek avatar siruowang avatar

Stargazers

 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

postpi's Issues

Functions in the package

The package should contain these functions that the users see (the other helper functions can be hidden by not exporting them)

  • iap_relate
    -inputs: test_dat, formula (with y as outcome, predictions as covariates))
    -outputs: rel_mod (the relationship model)

  • iap_relate_plot

    • inputs: rel_mod
      -outputs: diagnostic plots (y and y_p for continuous along with model fit, for binary it could observed probability versus predicted)
  • iap_glm

    • inputs: formula, valid_dat, rel_mod
    • outputs: regression model output from using the bootstrap approach (estimate, se, t-statistic, output in standard broom format)
  • iap_lm_deriv

    • inputs: formula, valid_dat, rel_mod
    • outputs: regression model output from using iap_boot approach (estimate, se, t-statistic, output in standard broom format)

old

  • iap_relate_plot

    • inputs: data set, prediction model, outcome variable, smoother choice (linear, loess)
    • outputs: plot of y versus predicted y for continuous data, plot of y versus predicted probability for binary
  • iap_outcomes_plot

    • input: data set, prediction model, relationship model
      -output: plot of bootstrapped/simulated y versus real y
  • iap_sim

    • input: number of covariates, number of samples (total), fraction in training/testing,validation, whether the outcome is binary or continous
    • output: data frame with columns outcome, covariate_1, covariate_2, etc., and group with values of either training, testing, or validation.

We should base this on the tidyverse/caret packages

When building a prediction/relationship model the user should use caret: http://topepo.github.io/caret/index.html

When setting up the sampling scheme the user should use rsample: https://github.com/tidymodels/rsample

When setting up the inference model the user should use recipes: https://github.com/tidymodels/recipes

We should use yardstick to measure accuracy:
https://github.com/tidymodels/yardstick

Output for the models should be created in broom format:
https://github.com/tidymodels/broom

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.