Function to graphically display chi2 test results to ID confounders. Requires a data frame with outcome and exposures such as the one provided by the chi.2.eksp function. Returns a list of network objects in pdf
1 2 | chi.confounder.net(df, outcome = "outcome", exposure = "exposure",
outdir = "graphs/", stoor = TRUE, remPiq = FALSE)
|
df |
Data frame containing outcomes and exposures |
outcome |
Character vector referring to the name of the outcome column |
exposure |
Character vector referring to the name of the exposure column |
outdir |
Character vector containing to output directory |
stoor |
Logical that stores the file as pdf when TRUE |
Logical |
that removes "Piqola_" from outcomes and exposures when TRUE |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.