# NOT RUN {
states = as.data.frame(state.x77)
m1 = lm(`Life Exp` ~ Income + Illiteracy, data=states,
subset=state.region=='Northeast')
m2 = lm(`Life Exp` ~ Income + Illiteracy, data=states,
subset=state.region=='South')
m3 = lm(`Life Exp` ~ Income + Illiteracy, data=states,
subset=state.region=='North Central')
m4 = lm(`Life Exp` ~ Income + Illiteracy, data=states,
subset=state.region=='West')
mList = list(m1, m2, m3, m4)
coefficient_forestplot(model_list = mList,
model_names =c('Northeast', 'South',
'North Central', 'West'),
horiz = FALSE)
# }
Run the code above in your browser using DataLab