Skip to content

Commit de46dc3

Browse files
committed
Final graphics, final scripts
Added final graphics, final snippets of code, etc.
1 parent 0f74622 commit de46dc3

9 files changed

+14
-3
lines changed

1stg.png

6.19 KB
Loading

2ndg.png

4.89 KB
Loading

3rdg.png

15.3 KB
Loading

Rplot.png

184 KB
Loading

Rplot01.png

184 KB
Loading

Vcov Matrix.png

147 KB
Loading

results.Rmd

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
22
title: "Result Presentation"
3-
output: word_document
43
lang: en-EN
5-
editor_options:
4+
output:
5+
word_document: default
6+
pdf_document:
7+
keep_tex: yes
8+
editor_options:
69
chunk_output_type: console
710
---
811

@@ -38,6 +41,15 @@ ModelC = lm(data = dataF, kfavg ~ oportunidade + pressao + racionalizacao + kgav
3841
```
3942

4043
```{r, results='asis', warning=FALSE}
44+
#1st Graph
45+
ggplot(ModelC) + stat_qq(aes(sample = ModelC$residuals), color = "black", alpha = 0.2) + geom_abline(intercept = mean(ModelC$residuals), slope = sd(ModelC$residuals), color = "red") + theme_calc()
46+
47+
#2nd Graph
48+
ggplot(ModelC, aes(x = .resid, y = ..density..)) + geom_histogram(bins = 15, color = "white", fill = "black") + theme_calc()
49+
50+
#3rd Graph
51+
ggplot(ModelN, aes(x = .fitted, y = .resid)) + geom_point(color = "black", alpha = 0.3) + stat_smooth(color = "red") + theme_calc()
52+
4153
4254
reg_table <- huxreg(ModelN, ModelC, statistics = c(N = "nobs", R2 = "r.squared", R2Adj = "adj.r.squared",
4355
"AIC"))

results.docx

25 KB
Binary file not shown.

script.R

-1
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,3 @@ ModelCS = lm(data = dataF, kfavg ~ oportunidade +
233233
pressao + racionalizacao + kgavg + df$idade +
234234
as.factor(df$socioeconomico))
235235
summary(ModelCS)
236-

0 commit comments

Comments
 (0)