# \donttest{
#Generate plots and corresponding tables only.
mlifeTable_plot(X=lifedata[,-1],state.include = 0,
groupby = c("male","black","hispanic"),
cred = 0.84,
states = 3,
file_path = ".")
#Additionally generate the comparsion results to the reference level.
mlifeTable_plot(X=lifedata[,-1],state.include = 0,
groupby = c("male","black","hispanic"),
cred = 0.84,
states = 3,
file_path = ".",
compare = TRUE,
ref.var = c("black","hispanic"),
ref.level = c(0,0))
# }
Run the code above in your browser using DataLab