-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix organise typos * added core code to import, describe, inference, appendix * Installed pkgs, library chunk, and data folder --------- Co-authored-by: Your Name <[email protected]> Co-authored-by: lisaawilliams <[email protected]> Co-authored-by: Fonti Kar <[email protected]>
- Loading branch information
1 parent
1640ff2
commit c754501
Showing
35 changed files
with
1,911 additions
and
8 deletions.
There are no files selected for viewing
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ site_libs | |
index.tex | ||
docs/ | ||
.quarto/ | ||
.DS_Store |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,48 @@ | ||
# Describe | ||
# Describe | ||
|
||
## getting a feel for your data | ||
|
||
`str` | ||
|
||
`glimpse` | ||
|
||
`skimr` | ||
|
||
## counting things | ||
|
||
`group_by` + `summarise` + `count` | ||
|
||
`n` | ||
|
||
`tabyl` | ||
|
||
## getting descriptives | ||
|
||
`group_by` + `summarise` + `mean` & `sd` | ||
|
||
```{r eval = FALSE} | ||
scale1_by_condition12 <- data_scalescomputed %>% | ||
group_by(condition12) %>% | ||
summarise(mean_scale1 = mean(scale1_index, na.rm = TRUE), | ||
sd_scale1 = sd(scale1_index, na.rm = TRUE)) | ||
``` | ||
|
||
### Three things to remember | ||
|
||
1. When we compute means, we need to set the decimals via `round()`. | ||
2. We also need to tell R to calculate the mean, even if some of the contributing data points are missing. This is what `na.rm = TRUE` does. | ||
3. As noted above, `rowwise` asks R to do something for each row (which is what we want here -- to compute the mean of the contributing items for each participant). Whenever we use `rowwise` (or `group_by`), we need to `ungroup()` at the end to avoid issues down the line. | ||
|
||
## tables?? | ||
|
||
`gt` | ||
|
||
```{r eval = FALSE} | ||
gt(scale1_by_condition12) | ||
``` | ||
|
||
`apaTable` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.