Create Relative risk column
Source:R/create_rel_risk_transformator.R
create_rel_risk_transformator.RdArguments
- dataname
(
character(1)) the name of the dataset which columns will be used for possible transformation.datanameshould be passed in quotes ex:"ADSL".- column_name
(
character(1)) field or variable from the dataset.- control_group
(
character(1)) one of the existing level from the selectedcolumn_name.- label_name
(
character(1)) label for the new field or variable.
Details
This transformator allows the user to select a column and control group from the dataset and create a relative risk column.
Examples
app <- teal::init(
data = teal.data::teal_data(IRIS = iris, code = "IRIS <- iris"),
modules = teal::modules(
teal::example_module(
transformators = list(create_rel_risk_transformator("IRIS"))
)
)
)
if (interactive()) {
shiny::shinyApp(app$ui, app$server)
}