Package: risks 0.4.2
Konrad Stopsack
risks: Estimate Risk Ratios and Risk Differences using Regression
Risk ratios and risk differences are estimated using regression models that allow for binary, categorical, and continuous exposures and confounders. Implemented are marginal standardization after fitting logistic models (g-computation) with delta-method and bootstrap standard errors, Miettinen's case-duplication approach (Schouten et al. 1993, <doi:10.1002/sim.4780121808>), log-binomial (Poisson) models with empirical variance (Zou 2004, <doi:10.1093/aje/kwh090>), binomial models with starting values from Poisson models (Spiegelman and Hertzmark 2005, <doi:10.1093/aje/kwi188>), and others.
Authors:
risks_0.4.2.tar.gz
risks_0.4.2.zip(r-4.5)risks_0.4.2.zip(r-4.4)risks_0.4.2.zip(r-4.3)
risks_0.4.2.tgz(r-4.4-any)risks_0.4.2.tgz(r-4.3-any)
risks_0.4.2.tar.gz(r-4.5-noble)risks_0.4.2.tar.gz(r-4.4-noble)
risks_0.4.2.tgz(r-4.4-emscripten)risks_0.4.2.tgz(r-4.3-emscripten)
risks.pdf |risks.html✨
risks/json (API)
# Install 'risks' in R: |
install.packages('risks', repos = c('https://stopsack.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/stopsack/risks/issues
- breastcancer - Breast Cancer Data
binomialbiostatisticsepidemiologyregression-models
Last updated 7 months agofrom:9d15147e20. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 12 2024 |
R-4.5-win | OK | Nov 12 2024 |
R-4.5-linux | OK | Nov 12 2024 |
R-4.4-win | OK | Nov 12 2024 |
R-4.4-mac | OK | Nov 12 2024 |
R-4.3-win | OK | Nov 12 2024 |
R-4.3-mac | OK | Nov 12 2024 |
Exports:conv.testriskdiffriskratiorr_rd_mantel_haenszel
Dependencies:backportsbcabootbootbroomclicpp11dplyrfansigenericsgluelatticelifecyclemagrittrpillarpkgconfigpurrrR6rlangsandwichstringistringrtibbletidyrtidyselectutf8vctrswithrzoo
Introduction to the risks package: Get Started
Rendered fromrisks.Rmd
usingknitr::rmarkdown
on Nov 12 2024.Last update: 2023-02-22
Started: 2021-02-19
Marginal standardization
Rendered frommargstd.Rmd
usingknitr::rmarkdown
on Nov 12 2024.Last update: 2023-06-13
Started: 2021-02-19
Models and model comparisons
Rendered frommodels.Rmd
usingknitr::rmarkdown
on Nov 12 2024.Last update: 2024-04-16
Started: 2021-02-19
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Breast Cancer Data | breastcancer |
Clustering-corrected confidence intervals for case duplication model | confint.duplicate |
Bootstrap confidence intervals | confint.margstd_boot |
Delta method confidence intervals | confint.margstd_delta |
Robust confidence intervals for Poisson model | confint.robpoisson |
Print model | print.risks |
Print model summary | print.summary.risks |
Fit risk ratio and risk difference models | riskdiff riskratio |
risks: Estimate risk ratios and risk differences using regression | risks |
Risk Ratios and Risk Differences from Mantel-Haenszel Estimators | rr_rd_mantel_haenszel |
Summary for logistic model with case duplication and cluster-robust covariance | summary.duplicate |
Summary for models using marginal standardization | summary.margstd_boot |
Summary for models using marginal standardization with delta method SEs | summary.margstd_delta |
Generate model summary | summary.risks |
Summary for Poisson model with robust covariance | summary.robpoisson |
Tidy model summaries for risks models | tidy.risks |