{
  "_id": "6ac63a35f511ae58c09a830d",
  "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-10-07 09:54:55 UTC",
    "User": "root"
  },
  "Author": "Victor Castro [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-7390-6354>)",
  "Maintainer": "Victor Castro <vcastro@mgh.harvard.edu>",
  "_user": "vcastro",
  "_type": "src",
  "_file": "CVrisk_1.2.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/6e155f96dd3cdf384c6118f5432286bc299d5237f1cd40bb975552e1ceb7a0d7",
  "_filesize": 560032,
  "_sha256": "6e155f96dd3cdf384c6118f5432286bc299d5237f1cd40bb975552e1ceb7a0d7",
  "_expires": "2027-01-15T12:25:23.000Z",
  "_created": "2026-10-07T09:54:55.000Z",
  "_published": "2026-10-07T12:25:25.125Z",
  "_buildurl": "https://github.com/r-universe/vcastro/actions/runs/37603481533",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 112734571214,
      "time": 120,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11473922773"
    },
    {
      "job": 112734571318,
      "time": 128,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11473788082"
    },
    {
      "job": 112734571302,
      "time": 169,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11481762496"
    },
    {
      "job": 112734571224,
      "time": 177,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11481752364"
    },
    {
      "job": 112733398422,
      "time": 185,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11474355432"
    },
    {
      "job": 112734571215,
      "time": 96,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11474117169"
    },
    {
      "job": 112734571236,
      "time": 62,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11473264740"
    },
    {
      "job": 112734571472,
      "time": 74,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11473623645"
    },
    {
      "job": 112734571284,
      "time": 71,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11473603912"
    }
  ],
  "_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
  },
  "_distro": "resolute",
  "_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",
    "followers": 19,
    "description": "Data Scientist @ Mass General Brigham +\r\nPopulation Health Ph.D. candidate @ Northeastern University"
  },
  "_downloads": {
    "count": 441,
    "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.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/CVrisk.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_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",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "preventr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "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-10-07T09:57:30.000Z",
      "distro": "resolute",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "https://r2.ropensci.org/3daa39eebfc91e4d54b2d0f17f8807256960ba83af46c868073c83cfbaa0df96",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/37603481533"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2.1",
      "date": "2026-10-07T09:57:04.000Z",
      "distro": "resolute",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "https://r2.ropensci.org/236b183022a95ca84454a164121a5fb5fb0c54f169e1b187e283aa779996dce8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/37603481533"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.1",
      "date": "2026-10-07T12:24:23.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "https://r2.ropensci.org/53d3952a0ae7dcaa3a0e808094d5ee2ce2b36fc9bf2bcb225dff04ee5214a492",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/37603481533"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2.1",
      "date": "2026-10-07T12:23:04.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "https://r2.ropensci.org/fa9988956e6fca4786c6d357affdb824fff8a9026589ab9f8861c69da0a83115",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/37603481533"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.1",
      "date": "2026-10-07T09:56:48.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "https://r2.ropensci.org/9b82de245cbb826a46394a10f2e6e838f3de2a9497afcc3f2191998b8362bae0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/37603481533"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-10-07T09:55:58.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "https://r2.ropensci.org/a2793c7da18cef4eaf8349bb163602368480bd6618c09877b162cb5a31907dd5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/37603481533"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-10-07T09:56:04.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "https://r2.ropensci.org/4f2116090d73363a4f6f8eb2b119eeb21e18472a20f04bc4c79727b04b0d2fb4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/37603481533"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-10-07T09:56:04.000Z",
      "commit": "d6b93e96be8c7bcfc3459223f8da3340509f2fc5",
      "fileid": "https://r2.ropensci.org/8c90f9e8a524fe04724047fb0786adfe29c8ca0a0b759f766e35112976d7a492",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/vcastro/actions/runs/37603481533"
    }
  ]
}