library(shiny)
library(burro)
library(NHANES)
data("NHANES")
##specify outcome variable here
outcome_var <- c("Depressed")
## specify covariates here (including outcome variable)
covariates <- c("Gender", "Age", "SurveyYr", "Race1", "Race3" ,"MaritalStatus",
"BMI", "HHIncome", "Education",
"BMI_WHO", "BPSysAve", "TotChol", "Depressed", "LittleInterest",
"SleepHrsNight", "SleepTrouble", "TVHrsDay", "AlcoholDay",
"Marijuana", "RegularMarij", "HardDrugs")
app <- explore_data(NHANES, covariates, outcome_var)
runApp(app)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.