Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions examples/026-snap-clean.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -151,28 +151,32 @@ This should interface directly with "manual" markdown tables...

## Regression tables

### modelsummary
### Regression example

<!-- install these packages and remove eval = FALSE to render these tables -->
<!-- install these packages, remove eval = FALSE from the first chunk,
and uncomment the third slide to render the table -->

```{r, eval = FALSE}
library(fixest)

mods = feols(
rating ~ complaints + #privileges +
rating ~ complaints +
learning + csw0(raises + critical),
data = attitude
)

dict = c("rating" = "Overall Rating",
"complaints" = "Handling of Complaints",
# "privileges" = "No Special Priviledges",
"learning" = "Opportunity to Learn",
"raises" = "Performance-Based Raises",
"critical" = "Too Critical")
```

```{r, eval = FALSE}
## Regression tables

### modelsummary

```{r modelsummary-table, eval = FALSE}
library(modelsummary)

modelsummary(
Expand All @@ -185,6 +189,16 @@ modelsummary(
tinytable::style_tt(i = 1:2, j = 2:3, background = "pink")
```

<!-- Uncomment the following slide to show the regression table -->
<!--
## Regression tables

### modelsummary

```{r modelsummary-table, echo = FALSE}
```
-->

## Plots

### Volcano plot
Expand Down
22 changes: 18 additions & 4 deletions examples/026-snap-clean.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,27 +143,31 @@ This should interface directly with "manual" markdown tables...

## Regression tables

### modelsummary
### Regression example

<!-- install these packages and remove eval = FALSE to render these tables -->
<!-- install these packages, remove eval = FALSE from the first chunk,
and uncomment the third slide to render the table -->

``` {.r}
library(fixest)

mods = feols(
rating ~ complaints + #privileges +
rating ~ complaints +
learning + csw0(raises + critical),
data = attitude
)

dict = c("rating" = "Overall Rating",
"complaints" = "Handling of Complaints",
# "privileges" = "No Special Priviledges",
"learning" = "Opportunity to Learn",
"raises" = "Performance-Based Raises",
"critical" = "Too Critical")
```

## Regression tables

### modelsummary

``` {.r}
library(modelsummary)

Expand All @@ -177,6 +181,16 @@ modelsummary(
tinytable::style_tt(i = 1:2, j = 2:3, background = "pink")
```

<!-- Uncomment the following slide to show the regression table -->
<!--
## Regression tables

### modelsummary

```{r modelsummary-table, echo = FALSE}
```
-->

## Plots

### Volcano plot
Expand Down
Loading