OpenIntroStat / ims

📚 Introduction to Modern Statistics - A college-level open-source textbook with a modern approach highlighting multivariable relationships and simulation-based inference. For v1, see https://openintro-ims.netlify.app.
https://openintro-ims.netlify.app/
Other
874 stars 172 forks source link

Typo - Chp [13], Sec [6.1], [Table 13.1 Column labels No event/Stroke are switched] #441

Closed s-k-pike closed 9 months ago

s-k-pike commented 10 months ago

stent30 |> count(group, outcome) |> pivot_wider(names_from = outcome, values_from = n, values_fill = 0) |> janitor::adorn_totals(where = c("row", "col")) |> kbl(linesep = "", booktabs = TRUE, col.names = c("Group", "Stroke", "No event", "Total")) |> kable_styling(bootstrap_options = c("striped", "condensed"), latex_options = c("striped", "hold_position"), full_width = FALSE) |> column_spec(1:4, width = "7em")


- Suggestion for corrected text: 

```{r}
#| label: tbl-stentStudyResultsCIsection
#| tbl-cap: Descriptive statistics for 30-day results for the stent study.

stent30 |>
  count(group, outcome) |>
  pivot_wider(names_from = outcome, values_from = n, values_fill = 0) |>
  janitor::adorn_totals(where = c("row", "col")) |>
  kbl(linesep = "", booktabs = TRUE, 
      col.names = c("Group", "No event", "Stroke", "Total")) |>
  kable_styling(bootstrap_options = c("striped", "condensed"), 
                latex_options = c("striped", "hold_position"), full_width = FALSE) |>
  column_spec(1:4, width = "7em")
hardin47 commented 9 months ago

fixed, thank you!