Skip to content

📦 🧰 Your One Stop to Targeted Learning in R with the tlverse

Notifications You must be signed in to change notification settings

tlverse/tlverse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

📦 🧰 Your One Stop to Targeted Learning in R with the tlverse

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published