|
(1) |
(2) |
(Intercept) |
0.413 *** |
0.308 *** |
|
(0.045) |
(0.055) |
e_migdppc |
0.001 |
|
|
(0.001) |
|
RegionE Europe / C Asia |
0.142 * |
0.112 * |
|
(0.055) |
(0.054) |
RegionLat. Am and Caribbean |
0.241 *** |
0.223 *** |
|
(0.058) |
(0.057) |
RegionMiddle East / N Africa |
-0.176 ** |
-0.213 *** |
|
(0.062) |
(0.061) |
RegionSub-Saharan Africa |
0.040 |
0.094 |
|
(0.052) |
(0.053) |
RegionW Europe / N America |
0.424 *** |
0.356 *** |
|
(0.065) |
(0.064) |
log(e_migdppc) |
|
0.061 ** |
|
|
(0.018) |
N |
162 |
162 |
R2 |
0.480 |
0.511 |
logLik |
40.117 |
45.135 |
AIC |
-64.233 |
-74.270 |
*** p < 0.001; ** p < 0.01; * p < 0.05. |
]
]
---
# HTML output
When we call `huxreg` it will by default give us plain text output.
That might not be enough for us.
One other output format is HTML. The following command will open a document in a web browser.
```r
quick_html(huxreg(mod, mod2))
```
Other valuable commands include `quick_docx(...)` and `quick_xlsx(...)` for export to Word and Excel respectively.
`quick_pdf(...)` may also work if you have LaTeX installed. If you do not know whether you have LaTeX installed, then you do not have LaTeX installed.
---
# Making it pretty
Our variable names are not intuitive.
We could create variables with different names, but that would be restrictive.
A better option is to pass `huxreg` a list of changes we want to make.
```r
huxreg(mod, mod2,
coefs = c('GDP per capita, $000s' = 'e_migdppc',
'log(GDP per capita, $000s' = 'log(e_migdppc)',
'RegionE Europe / C Asia' = 'E Europe / C Asia',
'RegionLat. Am and Caribbean' = 'Latin America and the Caribbean',
'RegionMiddle East / N Africa' = 'Middle East / N Africa',
'RegionSub-Saharan Africa' = 'Sub-Saharan Africa',
'RegionW Europe / N America' = 'W Europe / N America'))
```
Yes, this is the opposite order to `recode`'s `oldthing = newthing`. **Sorry...**
---