{
  "_id": "6a27be0c24555f66ed53c1ea",
  "Package": "CVrisk",
  "Title": "Compute Risk Scores for Cardiovascular Diseases",
  "Version": "1.2.1",
  "Authors@R": "person(given = \"Victor\",\nfamily = \"Castro\",\nrole = c(\"aut\", \"cre\"),\nemail = \"vcastro@mgh.harvard.edu\",\ncomment = c(ORCID = \"https://orcid.org/0000-0001-7390-6354\"))",
  "Description": "Calculate various cardiovascular disease risk scores from\nthe Framingham Heart Study (FHS), the American College of\nCardiology (ACC), and the American Heart Association (AHA) as\ndescribed in D’agostino, et al (2008)\n<doi:10.1161/circulationaha.107.699579>, Goff, et al (2013)\n<doi:10.1161/01.cir.0000437741.48606.98>, and Mclelland, et al\n(2015) <doi:10.1016/j.jacc.2015.08.035>, and Khan, et al (2024)\n<doi:10.1161/CIRCULATIONAHA.123.067626>.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "URL": "https://vcastro.github.io/CVrisk/,\nhttps://github.com/vcastro/CVrisk/",
  "BugReports": "https://github.com/vcastro/CVrisk/issues",
  "VignetteBuilder": "knitr",
  "Repository": "https://vcastro.r-universe.dev",
  "Date/Publication": "2026-01-10 17:10:25 UTC",
  "RemoteUrl": "https://github.com/vcastro/cvrisk",
  "RemoteRef": "HEAD",
  "RemoteSha": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-09 06:59:24 UTC",
    "User": "root"
  },
  "Author": "Victor Castro [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-7390-6354>)",
  "Maintainer": "Victor Castro <vcastro@mgh.harvard.edu>",
  "MD5sum": "c0cf3164c34e7c3902cefbdd48138615",
  "_user": "vcastro",
  "_type": "src",
  "_file": "CVrisk_1.2.1.tar.gz",
  "_fileid": "a99f83447513e7cc57024e07ae96f2f2c4892b739dead7a8e80677c2f0520822",
  "_filesize": 558247,
  "_sha256": "a99f83447513e7cc57024e07ae96f2f2c4892b739dead7a8e80677c2f0520822",
  "_created": "2026-06-09T06:59:24.000Z",
  "_published": "2026-06-09T07:17:32.120Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80266014902,
      "time": 106,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7500645612"
    },
    {
      "job": 80266014878,
      "time": 124,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7500650749"
    },
    {
      "job": 80266014913,
      "time": 227,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7500922515"
    },
    {
      "job": 80266014895,
      "time": 165,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7500871298"
    },
    {
      "job": 80265518355,
      "time": 201,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7500613455"
    },
    {
      "job": 80266014858,
      "time": 102,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7500644609"
    },
    {
      "job": 80266014904,
      "time": 78,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7500637653"
    },
    {
      "job": 80266014880,
      "time": 70,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7500635092"
    },
    {
      "job": 80266014882,
      "time": 62,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7500632112"
    }
  ],
  "_buildurl": "https://github.com/r-universe/vcastro/actions/runs/27189331836",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/vcastro/cvrisk",
  "_commit": {
    "id": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
    "author": "vcastro <vcastro@mgh.harvard.edu>",
    "committer": "vcastro <vcastro@mgh.harvard.edu>",
    "message": "add rhub gha, prep for cran\n",
    "time": 1768065025
  },
  "_maintainer": {
    "name": "Victor Castro",
    "email": "vcastro@mgh.harvard.edu",
    "login": "vcastro",
    "linkedin": "in/victormcastro",
    "orcid": "0000-0001-7390-6354",
    "description": "Data Scientist @ Mass General Brigham +\nPopulation Health Ph.D. candidate @ Northeastern University",
    "uuid": 1738286
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "preventr",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 2.1.0",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "vcastro",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-52",
      "n": 2
    },
    {
      "week": "2026-01",
      "n": 4
    },
    {
      "week": "2026-02",
      "n": 4
    }
  ],
  "_tags": [
    {
      "name": "v1.2.1",
      "date": "2026-01-10"
    }
  ],
  "_stars": 20,
  "_contributors": [
    {
      "user": "vcastro",
      "count": 39,
      "uuid": 1738286
    },
    {
      "user": "copilot",
      "count": 37,
      "uuid": 198982749
    },
    {
      "user": "hhubbell",
      "count": 2,
      "uuid": 5102597
    }
  ],
  "_userbio": {
    "uuid": 1738286,
    "type": "user",
    "name": "Victor Castro",
    "description": "Data Scientist @ Mass General Brigham +\r\nPopulation Health Ph.D. candidate @ Northeastern University"
  },
  "_downloads": {
    "count": 334,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/CVrisk"
  },
  "_devurl": "https://github.com/vcastro/cvrisk",
  "_pkgdown": "https://vcastro.github.io/CVrisk/",
  "_searchresults": 48,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/CVrisk.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/vcastro/cvrisk",
  "_realowner": "vcastro",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2020-10-27"
    },
    {
      "version": "1.1.0",
      "date": "2021-12-06"
    },
    {
      "version": "1.1.1",
      "date": "2023-08-20"
    },
    {
      "version": "1.2.1",
      "date": "2026-01-10"
    }
  ],
  "_exports": [
    "ascvd_10y_accaha",
    "ascvd_10y_frs",
    "ascvd_10y_frs_simple",
    "ascvd_10y_prevent",
    "ascvd_30y_prevent",
    "chd_10y_mesa",
    "chd_10y_mesa_cac",
    "compute_CVrisk",
    "make_sample_data"
  ],
  "_datasets": [
    {
      "name": "ascvd_pooled_coef",
      "title": "Model coefficients for ASCVD 10y ACC/AHA model",
      "object": "ascvd_pooled_coef",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "race",
        "gender",
        "ln_age",
        "ln_age_squared",
        "ln_totchol",
        "ln_age_totchol",
        "ln_hdl",
        "ln_age_hdl",
        "ln_treated_sbp",
        "ln_age_treated_sbp",
        "ln_untreated_sbp",
        "ln_age_untreated_sbp",
        "smoker",
        "ln_age_smoker",
        "diabetes",
        "group_mean",
        "baseline_survival"
      ],
      "rows": 4,
      "table": true,
      "tojson": true
    },
    {
      "name": "frs_coef",
      "title": "Model coefficients for ASCVD 10y FRS model",
      "object": "frs_coef",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "gender",
        "ln_age",
        "ln_totchol",
        "ln_hdl",
        "ln_untreated_sbp",
        "ln_treated_sbp",
        "smoker",
        "diabetes",
        "group_mean",
        "baseline_survival"
      ],
      "rows": 2,
      "table": true,
      "tojson": true
    },
    {
      "name": "frs_simple_coef",
      "title": "Model coefficients for ASCVD 10y FRS simple model",
      "object": "frs_simple_coef",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "gender",
        "ln_age",
        "ln_bmi",
        "ln_untreated_sbp",
        "ln_treated_sbp",
        "smoker",
        "diabetes",
        "group_mean",
        "baseline_survival"
      ],
      "rows": 2,
      "table": true,
      "tojson": true
    },
    {
      "name": "mesa_cac_coef",
      "title": "mesa_cac_coef",
      "object": "mesa_cac_coef",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "age",
        "gender_male",
        "race_chinese",
        "race_aa",
        "race_hispanic",
        "diabetes",
        "smoker",
        "totchol",
        "hdl",
        "hld_med",
        "sbp",
        "bp_med",
        "fh_heartattack",
        "log1p_cac",
        "baseline_survival"
      ],
      "rows": 1,
      "table": true,
      "tojson": true
    },
    {
      "name": "mesa_coef",
      "title": "mesa_coef",
      "object": "mesa_coef",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "age",
        "gender_male",
        "race_chinese",
        "race_aa",
        "race_hispanic",
        "diabetes",
        "smoker",
        "totchol",
        "hdl",
        "hld_med",
        "sbp",
        "bp_med",
        "fh_heartattack",
        "baseline_survival"
      ],
      "rows": 1,
      "table": true,
      "tojson": true
    },
    {
      "name": "sample_data",
      "title": "Sample patient data",
      "object": "sample_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "age",
        "gender",
        "race",
        "BMI",
        "sbp",
        "hdl",
        "totchol",
        "bp_med",
        "smoker",
        "diabetes",
        "lipid_med",
        "fh_heartattack",
        "cac",
        "egfr"
      ],
      "rows": 7,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "ascvd_10y_accaha",
      "title": "ACC/AHA 2013 ASCVD risk score",
      "topics": [
        "ascvd_10y_accaha"
      ]
    },
    {
      "page": "ascvd_10y_frs",
      "title": "Framingham 2008 ASCVD risk score (with lab measurement)",
      "topics": [
        "ascvd_10y_frs"
      ]
    },
    {
      "page": "ascvd_10y_frs_simple",
      "title": "Framingham 2008 ASCVD risk score (no lab measurement)",
      "topics": [
        "ascvd_10y_frs_simple"
      ]
    },
    {
      "page": "ascvd_10y_prevent",
      "title": "PREVENT 10-year ASCVD risk score",
      "topics": [
        "ascvd_10y_prevent"
      ]
    },
    {
      "page": "ascvd_30y_prevent",
      "title": "PREVENT 30-year ASCVD risk score",
      "topics": [
        "ascvd_30y_prevent"
      ]
    },
    {
      "page": "ascvd_pooled_coef",
      "title": "Model coefficients for ASCVD 10y ACC/AHA model",
      "topics": [
        "ascvd_pooled_coef"
      ]
    },
    {
      "page": "chd_10y_mesa",
      "title": "MESA 2015 CHD risk score",
      "topics": [
        "chd_10y_mesa"
      ]
    },
    {
      "page": "chd_10y_mesa_cac",
      "title": "MESA 2015 CHD risk score with CAC",
      "topics": [
        "chd_10y_mesa_cac"
      ]
    },
    {
      "page": "compute_CVrisk",
      "title": "Compute multiple CV risk scores",
      "topics": [
        "compute_CVrisk"
      ]
    },
    {
      "page": "frs_coef",
      "title": "Model coefficients for ASCVD 10y FRS model",
      "topics": [
        "frs_coef"
      ]
    },
    {
      "page": "frs_simple_coef",
      "title": "Model coefficients for ASCVD 10y FRS simple model",
      "topics": [
        "frs_simple_coef"
      ]
    },
    {
      "page": "make_sample_data",
      "title": "Generate sample cardiovascular risk data",
      "topics": [
        "make_sample_data"
      ]
    },
    {
      "page": "mesa_cac_coef",
      "title": "mesa_cac_coef",
      "topics": [
        "mesa_cac_coef"
      ]
    },
    {
      "page": "mesa_coef",
      "title": "mesa_coef",
      "topics": [
        "mesa_coef"
      ]
    },
    {
      "page": "sample_data",
      "title": "Sample patient data",
      "topics": [
        "sample_data"
      ]
    }
  ],
  "_pkglogo": "https://github.com/vcastro/cvrisk/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/vcastro/cvrisk/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "dplyr",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "preventr",
    "R6",
    "rlang",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "using-prevent-functions.Rmd",
      "filename": "using-prevent-functions.html",
      "title": "Using PREVENT Risk Score Functions",
      "author": "CVrisk Package",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Available PREVENT Functions",
        "Model Variants",
        "How the \"auto\" Model Selection Works",
        "Basic Usage: Individual Functions",
        "10-Year ASCVD Risk (Base Model)",
        "30-Year ASCVD Risk",
        "Using Optional Predictors",
        "Adding HbA1c",
        "Adding UACR",
        "Adding Social Deprivation Index (SDI)",
        "Full Model",
        "Explicit Model Selection",
        "Comparing Multiple Risk Scores with compute_CVrisk()",
        "Example: PREVENT vs ACC/AHA",
        "Example: PREVENT vs Framingham",
        "Example: Multiple Scores Including 30-Year Risk",
        "Passing Model Parameter through compute_CVrisk()",
        "Handling Missing Data",
        "Vectorized Operations",
        "PREVENT vs Legacy Scores",
        "Key Differences from ACC/AHA, Framingham, and MESA",
        "References"
      ],
      "created": "2026-01-07 19:16:06",
      "modified": "2026-01-07 19:16:06",
      "commits": 1
    }
  ],
  "_score": 6.459392487759231,
  "_indexed": true,
  "_nocasepkg": "cvrisk",
  "_universes": [
    "vcastro"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.1",
      "date": "2026-06-09T07:01:14.000Z",
      "distro": "noble",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "be58cb37b86ee83a16a5110135cd24b2dbad502944091a23fd178957b23332d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/27189331836"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.1",
      "date": "2026-06-09T07:01:30.000Z",
      "distro": "noble",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "4a8b5ef45ef98bd58f4bdca5044b31518bc252f64a4d648cd2c9b15865e324eb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/27189331836"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.1",
      "date": "2026-06-09T07:16:21.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "e951c7f416f5ca9c34150499b7c12685530293f43f11cde76caa9820d5f96eb8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/27189331836"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.1",
      "date": "2026-06-09T07:13:38.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "c22345e18b54f2bfa8947814057c6a27071278eda85299cd7394fe6364816dc4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/27189331836"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.1",
      "date": "2026-06-09T07:01:26.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "8433cc66e15f35df3162a06d5ccb6f968199b8d5389ea740792f5a9b76b939e7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/27189331836"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-06-09T07:00:40.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "c1f5e2ed2c94fb3ec5b3b1cba2d1f7fb2454b93754c461b32ccfd0396f2092c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/27189331836"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-06-09T07:00:33.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "bd68539bf06f512a22380547bf7c7e2a654300f6a8174fb90dd88f55cb31e48a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/27189331836"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-06-09T07:00:27.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "a60041f2555c09f7ed2abf4edc23400e8ecf49ec52e09a43a5be465a9ee49ca2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/27189331836"
    }
  ]
}