Nothing
## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ----load, message = FALSE----------------------------------------------------
library(risks) # provides riskratio(), riskdiff(), postestimation functions
library(dplyr) # For data handling
library(broom) # For tidy() model summaries
data(breastcancer)
## ----selectapproach-----------------------------------------------------------
riskratio(formula = death ~ stage + receptor,
data = breastcancer,
approach = "glm_startp")
## ----allmodels----------------------------------------------------------------
fit_all <- riskratio(formula = death ~ stage + receptor,
data = breastcancer,
approach = "all")
summary(fit_all)
## ----allmodels2---------------------------------------------------------------
tidy(fit_all) %>%
select(-statistic, -p.value) %>%
print(n = 50)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.