Description Usage Arguments Examples
Examines case-mix according to key moderators, by study.
1 |
bss |
output from |
mods |
Which variables should be examined, of the |
max.levels |
If a numeric variable has fewer than |
plot |
if TRUE (the default) then summary plots are produced. If not, tables of summary statistics are returned. |
1 2 3 4 5 6 7 8 9 10 | dat <- msc_sample_data()
dat$agegrp <- cut(dat$age, c(0, 20, 40, 60, 80, 100))
dat$agegrp2 <- cut(dat$age, seq(0, 100, 5))
dat$agegrp3 <- as.numeric(dat$agegrp2)
bssamp <- get_bs_samples(dat, id, study, outcome, n.samples = 10,
scores = c("a", "b", "c", "d", "e", "f"),
moderators = c("age", "agegrp", "agegrp2", "agegrp3", "female", "sex", "x1"))
casemix(bssamp)
casemix(bssamp, plot = FALSE)
casemix(bssamp, mods = c("agegrp2", "agegrp3"), max.levels = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.