View source: R/draw_data_lfc.R
draw_data_lfc | R Documentation |
Generate binary data (LFC model)
draw_data_lfc(
n = 100,
prev = c(0.5, 0.5),
random = FALSE,
m = 10,
se = 0.8,
sp = 0.8,
B = round(m/2),
L = 1,
Rse = diag(rep(1, m)),
Rsp = diag(rep(1, m)),
modnames = paste0("model", 1:m),
...
)
n |
(numeric) |
prev |
(numeric) |
random |
(logical) |
m |
(numeric) |
se |
(numeric) |
sp |
(numeric) |
B |
(numeric) |
L |
(numeric) |
Rse |
(matrix) |
Rsp |
(maxtrix) |
modnames |
(modnames) |
... |
(any) |
(list)
list of matrices including generated binary datasets
(1: correct prediction, 0: incorrect prediction) for each subgroup (specificity, sensitivity)
data <- draw_data_lfc()
head(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.