Description Usage Arguments Value Examples
View source: R/generate_data_lfc.R
Generate binary data (LFC model)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
n |
integer, total sample size |
prev |
numeric, disease and healthy prevalence (adds up to 1) |
random |
logical, random sampling (TRUE) or fixed prevalence (FALSE) |
m |
integer, number of models |
se |
numeric, sensitivity (length 1) |
sp |
numeric, specificity (length 1) |
B |
integer, between 1 and m, specifies how many sensitivity values are projected to 1 |
L |
numeric, worst alternative is computed under side condition Acc <= L (default value L=1 corresponds to true LFC where values are projected to 1) |
Rse |
matrix, correlation matrix for empirical sensitivities (m x m) |
Rsp |
matrix, correlation matrix for empirical specificities (m x m) |
modnames |
character, model names (length m) |
... |
further arguments (currently unused) |
Generated binary dataset
1 2 | data <- generate_data_lfc()
head(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.