CVrisk

R package to calculate cardiovascular risk scores

https://github.com/vcastro/cvrisk

Science Score: 54.0%

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

  • CITATION.cff file
    Found 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
    2 of 5 committers (40.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

R package to calculate cardiovascular risk scores

Basic Info
Statistics
  • Stars: 14
  • Watchers: 4
  • Forks: 6
  • Open Issues: 1
  • Releases: 3
Created about 6 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog Citation

README.md

CVrisk

R build status Codecov test coverage CRAN status CRAN downloads R-CMD-check <!-- badges: end -->

About the package

CVrisk is a package to calculate various cardiovascular disease risk scores.

Currently available risk scores

  • Framingham 2008 10-year ASCVD risk (model with lipid labs)
  • Framingham 2008 10-year ASCVD risk (model with BMI)
  • ACC/AHA 2013 10-year ASCVD risk
  • MESA 2015 10-year ASCVD risk (traditional risk factors)
  • MESA 2015 10-year ASCVD risk (using coronary artery calcium)

Coming soon

  • Reynolds 2007 10-year ASCVD risk in women
  • Framingham 2009 30-year ASCVD risk

Installation

``` r

Install from CRAN

install.packages("CVrisk")

Install the development version from GitHub:

install.packages("devtools")

devtools::install_github("vcastro/CVrisk") ```

Usage

Calculate a single score:

``` r library(CVrisk) ascvd10yaccaha(race = "aa", gender = "male", age = 55, totchol = 213, hdl = 50, sbp = 140, bp_med = FALSE, smoker=0, diabetes=0)

```

Calculate multiple scores for a dataframe and append scores to the dataframe:

``` r

computeCVrisk(sampledata, age = "age", race = "race", gender = "gender", bmi = "BMI", sbp = "sbp", hdl = "hdl", totchol = "totchol", bpmed = "bpmed", smoker = "smoker", diabetes = "diabetes", lipidmed = "lipidmed", fhheartattack = "fhheartattack", cac = "cac" )

```

Owner

  • Name: Victor Castro
  • Login: vcastro
  • Kind: user
  • Location: Boston, MA
  • Company: Mass General Brigham

Data Scientist @ Mass General Brigham + Population Health Ph.D. student @ Northeastern University

Citation (CITATION.cff)

# -----------------------------------------------------------
# CITATION file created with {cffr} R package, v0.1.1
# See also: https://docs.ropensci.org/cffr/
# -----------------------------------------------------------
 
cff-version: 1.2.0
message: 'To cite package "CVrisk" in publications use:'
type: software
license: GPL-3.0-only
title: 'CVrisk: Compute Risk Scores for Cardiovascular Diseases'
version: 1.1.0
abstract: Calculate various cardiovascular disease risk scores from the Framingham
  Heart Study (FHS), the American College of Cardiology (ACC), and the American Heart
  Association (AHA) as described in D’agostino, et al (2008) <doi:10.1161/circulationaha.107.699579>,
  Goff, et al (2013) <doi:10.1161/01.cir.0000437741.48606.98>, and Mclelland, et al
  (2015) <doi:10.1016/j.jacc.2015.08.035>.
authors:
- family-names: Castro
  given-names: Victor
  email: vcastro@mgh.harvard.edu
  orcid: https://orcid.org/0000-0001-7390-6354
preferred-citation:
  type: manual
  title: 'CVrisk: Compute Risk Scores for Cardiovascular Diseases'
  authors:
  - family-names: Castro
    given-names: Victor
    email: vcastro@mgh.harvard.edu
    orcid: https://orcid.org/0000-0001-7390-6354
  version: 1.1.0
  abstract: Calculate various cardiovascular disease risk scores from the Framingham
    Heart Study (FHS), the American College of Cardiology (ACC), and the American
    Heart Association (AHA) as described in D’agostino, et al (2008) <doi:10.1161/circulationaha.107.699579>,
    Goff, et al (2013) <doi:10.1161/01.cir.0000437741.48606.98>, and Mclelland, et
    al (2015) <doi:10.1016/j.jacc.2015.08.035>.
  repository: https://CRAN.R-project.org/package=CVrisk
  repository-code: https://github.com/vcastro/CVrisk
  url: https://github.com/vcastro/CVrisk
  contact:
  - family-names: Castro
    given-names: Victor
    email: vcastro@mgh.harvard.edu
    orcid: https://orcid.org/0000-0001-7390-6354
  license: GPL-3.0-only
  year: '2021'
repository: https://CRAN.R-project.org/package=CVrisk
repository-code: https://github.com/vcastro/CVrisk
url: https://github.com/vcastro/CVrisk
contact:
- family-names: Castro
  given-names: Victor
  email: vcastro@mgh.harvard.edu
  orcid: https://orcid.org/0000-0001-7390-6354

GitHub Events

Total
  • Issues event: 1
  • Watch event: 4
  • Issue comment event: 1
  • Create event: 1
Last Year
  • Issues event: 1
  • Watch event: 4
  • Issue comment event: 1
  • Create event: 1

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 31
  • Total Committers: 5
  • Avg Commits per committer: 6.2
  • Development Distribution Score (DDS): 0.581
Past Year
  • Commits: 4
  • Committers: 1
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Victor Castro y****u@e****m 13
Victor Castro c****v@n****u 10
Victor Castro v****o@m****u 4
Harry Hubbell h****l@g****m 2
Victor Castro v****o@p****g 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 5
  • Total pull requests: 1
  • Average time to close issues: 4 days
  • Average time to close pull requests: 4 days
  • Total issue authors: 5
  • Total pull request authors: 1
  • Average comments per issue: 5.0
  • Average comments per pull request: 1.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • nothssss (1)
  • hussaifm (1)
  • emilie-theberge (1)
  • Fippu (1)
  • laouvi (1)
Pull Request Authors
  • hhubbell (1)
Top Labels
Issue Labels
bug (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 303 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: CVrisk

Compute Risk Scores for Cardiovascular Diseases

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 303 Last month
Rankings
Forks count: 14.9%
Stargazers count: 21.1%
Dependent packages count: 29.8%
Average: 31.8%
Dependent repos count: 35.5%
Downloads: 57.8%
Maintainers (1)
Last synced: 8 months ago

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • utils * imports
  • covr * suggests
  • testthat >= 2.1.0 suggests
  • tibble * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite