Skip to content

Commit

Permalink
Add mention of pretty_p_value
Browse files Browse the repository at this point in the history
  • Loading branch information
szimmer committed Mar 21, 2024
1 parent c605270 commit 0852f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 06-statistical-testing.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ The output from the `svyttest()` function can be a bit hard to read. Using the {
broom::tidy(ttest_ex2)
```

The 'tidied' output can also be piped into the {gt} package to create a table ready for publication. We go over the {gt} package in Chapter \@ref(c08-communicating-results).
The 'tidied' output can also be piped into the {gt} package to create a table ready for publication. We go over the {gt} package in Chapter \@ref(c08-communicating-results). The function `pretty_p_value()` comes from the {prettyunits} package and converts numeric p-values to characters and, by default prints four decimal places and displays any p-value less than 0.0001 as `"<0.0001"` though another minimum display p-value can be specified.

```{r}
#| label: stattest-ttest-ex2-gt
Expand Down

0 comments on commit 0852f08

Please sign in to comment.