# \donttest{
#By setting the parameter 'compare' in mlifeTable_plot() to TRUE.
#We can directly employ this function.
mlifeTable_plot(X=lifedata[,-1],state.include = 3,
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