DS4PS / cpp-529-fall-2020

http://ds4ps.org/cpp-529-fall-2020/
0 stars 0 forks source link

stargazer type #24

Open ekmcintyre opened 4 years ago

ekmcintyre commented 4 years ago

Using s.type for the type argument in stargazer for printing my regression models and summary stats is not working in my html file when I knit it. I have tried changing "text" to "html" in s.type and changing s.type to "html" in the code chunks themselves. Neither of these attempts have worked.

image

lecy commented 4 years ago

Recall that with Stargazer you need to add the code chunk argument results="asis".

```{r, results="asis"}

Currently you are printing the HTML code as a result. You want to embed the HTML into your RMD doc so it can be rendered as a table.