predtools

tools for developing and evaluating prediction models.

https://github.com/resplab/predtools

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    3 of 7 committers (42.9%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.3%) to scientific vocabulary

Keywords

r r-package
Last synced: 10 months ago · JSON representation

Repository

tools for developing and evaluating prediction models.

Basic Info
  • Host: GitHub
  • Owner: resplab
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 8.38 MB
Statistics
  • Stars: 9
  • Watchers: 3
  • Forks: 2
  • Open Issues: 0
  • Releases: 1
Topics
r r-package
Created almost 5 years ago · Last pushed about 3 years ago
Metadata Files
Readme Changelog

README.Rmd

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```



[![R-CMD-check](https://github.com/resplab/predtools/workflows/R-CMD-check/badge.svg)](https://github.com/resplab/predtools/actions) [![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/predtools)](https://cran.r-project.org/package=predtools) [![metacran downloads](https://cranlogs.r-pkg.org/badges/predtools)](https://cran.r-project.org/package=predtools) [![Project Status: Active -- The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)



# Overview

`predtools` provides miscellaneous tools for developing and evaluating prediction models.

# Table of Contents

-   [Installation](#installation)
-   [Example](#example)
-   [Model-based ROC](https://resplab.github.io/predtools/articles/mROC.html)
-   [Intercept Adjustment](https://resplab.github.io/predtools/articles/interceptAdj.html)
-   [Calibration Plot](https://resplab.github.io/predtools/articles/calibPlot.html)
-   [Unit Normal Loss Integral in Two Dimensions](https://resplab.github.io/predtools/articles/UNLI2D.html)

## Installation {#installation}

You can install the released version of predtools from [CRAN](https://CRAN.R-project.org) with:

``` r
install.packages("predtools")
```

And the development version from [GitHub](https://github.com/) with:

``` r
# install.packages("remotes")
remotes::install_github("resplab/predtools")
```

## Example {#example}

The function `calibration_plot` takes observed and predicted values from a prediction model and uses ggplot2 to produce a calibration plot:

    library(predtools)
    library(dplyr)
    x <- rnorm(100, 10, 2)
    y <- x + rnorm(100,0, 1)
    data <- tibble(x,y)
    calibration_plot(data, obs = "x", pred_1 = "y")

See vignettes for more advanced functionalities, including [model-based ROC](https://resplab.github.io/predtools/articles/mROC.html), [intercept adjustment](https://resplab.github.io/predtools/articles/interceptAdj.html), [calibration plot](https://resplab.github.io/predtools/articles/calibPlot.html), and [unit normal loss integral in two dimensions](https://resplab.github.io/predtools/articles/UNLI2D.html)

You can also access the vignettes from R:

    browseVignettes("predtools")

Owner

  • Name: RESP
  • Login: resplab
  • Kind: organization
  • Location: Vancouver, Canada

The Respiratory Evaluation Sciences Program (RESP) at the University of British Columbia

GitHub Events

Total
  • Watch event: 1
Last Year
  • Watch event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 157
  • Total Committers: 7
  • Avg Commits per committer: 22.429
  • Development Distribution Score (DDS): 0.58
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Amin Adibi a****i@a****a 66
Private (for peer-reviewed purposes) 6****d 33
Sadatsafavi m****i@e****a 27
Sadatsafavi m****i@u****a 15
Tae Yoon (Harry) Lee t****e@g****m 9
Abdollah a****2@g****m 5
Amin Adibi a****n@A****l 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 3
  • Total pull requests: 15
  • Average time to close issues: 4 months
  • Average time to close pull requests: 3 days
  • Total issue authors: 3
  • Total pull request authors: 3
  • Average comments per issue: 3.0
  • Average comments per pull request: 0.07
  • Merged pull requests: 14
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • sephhoe (1)
  • aminadibi (1)
  • zx8754 (1)
Pull Request Authors
  • tyhlee (9)
  • ab-sa (4)
  • msadatsafavi (2)
Top Labels
Issue Labels
bug (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 375 last-month
  • Total docker downloads: 55
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: predtools

Prediction Model Tools

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 375 Last month
  • Docker Downloads: 55
Rankings
Forks count: 17.1%
Stargazers count: 20.6%
Downloads: 20.8%
Average: 22.2%
Dependent repos count: 23.9%
Dependent packages count: 28.8%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.6 depends
  • RConics * imports
  • Rcpp * imports
  • dplyr * imports
  • ggplot2 * imports
  • graphics * imports
  • magrittr * imports
  • mvtnorm * imports
  • pROC * imports
  • stats * imports
  • knitr * suggests
  • rmarkdown * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v2 composite
  • actions/upload-artifact main composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite
.github/workflows/pkgdown.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v1 composite
  • r-lib/actions/setup-r v1 composite
  • r-lib/actions/setup-r-dependencies v1 composite