View source: R/PVBcorrect_functions.R
view_table | R Documentation |
View Test vs Disease/Gold Standard cross-classification table.
view_table(data, test, disease, show_unverified = FALSE, show_total = FALSE)
data |
A data frame, with at least "Test" and "Disease" variables. |
test |
The "Test" variable name, i.e. the test result. The variable must be in binary; positive = 1, negative = 0 format. |
disease |
The "Disease" variable name, i.e. the true disease status. The variable must be in binary; positive = 1, negative = 0 format. |
show_unverified |
Optional. Set to |
show_total |
Optional. Set to |
A cross-clasification table.
str(cad_pvb) # built-in data
view_table(data = cad_pvb, test = "T", disease = "D") # without unverified observations
view_table(data = cad_pvb, test = "T", disease = "D", show_total = TRUE)
# also with total observations by test result
view_table(data = cad_pvb, test = "T", disease = "D", show_unverified = TRUE)
# with unverified observations
view_table(data = cad_pvb, test = "T", disease = "D", show_unverified = TRUE,
show_total = TRUE) # also with total observations by test result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.