Skip to content

Commit

Permalink
Remove extra space in model_int code
Browse files Browse the repository at this point in the history
  • Loading branch information
ismayc committed Oct 14, 2024
1 parent b026ab9 commit ecbf5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 06-multiple-regression.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ coef(model_int)

```{r regtable-interaction, echo=FALSE, purl=FALSE}
# Fit regression model:
model_int <- lm(fert_rate ~ income + life_exp + income:life_exp , data = UN_data_ch6)
model_int <- lm(fert_rate ~ income + life_exp + income:life_exp, data = UN_data_ch6)
b_int <- round(coef(model_int),2)
# Get the coefficients of the model
lm_data <- data.frame("Coefficients" = c("b0", "b02", "b03", "b04", "b1", "b12", "b13", "b14"),"Values" = coefficients(model_int))
Expand Down

0 comments on commit ecbf5f8

Please sign in to comment.