Multivariate regressions Making a Graph

Below is my R code and results. I want to create a graph using ggplot, haven and readr. I am do not know how to write the code. I have a small idea, but I do not think it is effective. HELP??? >

model.1 <- lm(POLICE5A_W20 ~ F_SEX_FINAL + F_AGECAT_FINAL + F_ATTEND_FINAL, data=POLICE)

summary(model.1)

Call:

lm(formula = POLICE5A_W20 ~ F_SEX_FINAL + F_AGECAT_FINAL + F_ATTEND_FINAL,

data = POLICE)

Residuals:

Min 1Q Median 3Q Max

-2.281 -1.320 -0.578 0.205 96.913

Coefficients:

Estimate Std. Error t value Pr(>|t|)

(Intercept) 2.64436 0.49806 5.309 1.15e-07 ***

F_SEX_FINAL 0.06984 0.21110 0.331 0.74077

F_AGECAT_FINAL 0.16387 0.10644 1.540 0.12374

F_ATTEND_FINAL -0.15826 0.04759 -3.325 0.00089 ***

To understand how to make plots with ggplot2 i recommend the book r4ds which teaches it very well.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.