Coder Social home page Coder Social logo

tlverse / causalglm Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 0.0 7.44 MB

Interpretable and model-robust causal inference for heterogeneous treatment effects using generalized linear working models with targeted machine-learning

Home Page: https://tlverse.org/causalglm/

License: GNU General Public License v3.0

R 58.97% TeX 41.03%
treatment-effects causal-inference marginal-structural-models nonparametric-statistics semiparametric-estimation targeted-learning relative-risk-regression generalized-linear-models r heterogeneous-treatment-effects

causalglm's Introduction

R/tlverse: Your One Stop for Targeted Learning in R

The tlverse is an umbrella R package for targeted learning with the tlverse ecosystem of R packages.

library(tlverse) loads the following core packages:

  • sl3 for Ensemble Machine (Super) Learning
  • tmle3 for Targeted Minimum Loss-based Estimation (TMLE)

as well as the following helper packages:

  • delayed for parallelizing dependent tasks
  • origami for cross-validation

and packages for individual tmle3 parameters:

  • tmle3mopttx for targeted learning and variable importance with optimal individualized (categorical) treatments
  • tmle3shift for targeted learning and variable importance with stochastic interventions

Installation

The tlverse ecosystem of packages are currently hosted at https://github.com/tlverse, not yet on CRAN. You can use the devtools package to install them:

install.packages("devtools")
devtools::install_github("tlverse/tlverse")

The tlverse depends on a large number of other packages that are also hosted on GitHub. Because of this, you may see the following error:

Error: HTTP error 403.
  API rate limit exceeded for 71.204.135.82. (But here's the good news:
  Authenticated requests get a higher rate limit. Check out the documentation
  for more details.)

  Rate limit remaining: 0/60
  Rate limit reset at: 2019-03-04 19:39:05 UTC

  To increase your GitHub API rate limit
  - Use `usethis::browse_github_pat()` to create a Personal Access Token.
  - Use `usethis::edit_r_environ()` and add the token as `GITHUB_PAT`.

This just means that R tried to install too many packages from GitHub in too short of a window. To fix this, you need to tell R how to use GitHub as your user (you'll need a GitHub user account). Follow these two steps:

  1. Use usethis::browse_github_pat() to create a Personal Access Token.
  2. Use usethis::edit_r_environ() and add the token as GITHUB_PAT.

causalglm's People

Contributors

larsvanderlaan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

causalglm's Issues

Error installing

Hello @Larsvanderlaan

I am installing causalglm, with this command:

if(!require(devtools)) {
install.packages(devtools)
}
devtools::install_github("tlverse/causalglm")

However, I get this message error:

Failed to install 'sl3' from GitHub:
System command 'Rcmd.exe' failed, exit status: 1, stdout + stderr (last 10 lines):
E> ** inst
E> ** byte-compile and prepare package for lazy loading
E> Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
E> namespace 'rlang' 0.4.11 is already loaded, but >= 1.0.0 is required
E> Calls: ... namespaceImport -> loadNamespace -> namespaceImport -> loadNamespace
E> Ejecución interrumpida
E> ERROR: lazy loading failed for package 'sl3'
E> * removing 'C:/Users/juand/AppData/Local/Temp/RtmpoLY6Lw/Rinste68c13136b81/sl3'
E> -----------------------------------
E> ERROR: package installation failed

I appreciate your cooperation.

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.