apa.desc {apaText} | R Documentation |
Report descriptive statistics for a set of values
Description
Report descriptive statistics for a set of values
Usage
apa.desc(
.data,
.dv = NULL,
show.mean = NULL,
show.sd = NULL,
show.se = NULL,
show.conf.interval = NULL,
show.N = NULL,
number.decimals = NULL
)
Arguments
.data |
A data frame or data frame extension (e.g., tibble) |
.dv |
Name of the dependent variable column |
show.mean |
Show mean (Bool. Default TRUE) |
show.sd |
Show standard deviation (Bool. Default TRUE) |
show.se |
Show standard error (Bool. Default FALSE) |
show.conf.interval |
Show confidence interval (Bool. Default TRUE) |
show.N |
Show number of cases (Bool. Default TRUE) |
number.decimals |
Number of decimals in output |
Value
R Markdown text
Examples
# 2-way ANOVA Example
if (requireNamespace("apaTables", quietly = TRUE)){
library(dplyr)
goggles <- apaTables::goggles
#Main Effect Means: Gender
goggles %>% filter(gender == "Female") %>% apa.desc(attractiveness)
goggles %>% filter(gender == "Male") %>% apa.desc(attractiveness)
# Main Effect Means: Alcohol
goggles %>% filter(alcohol == "None") %>% apa.desc(attractiveness)
goggles %>% filter(alcohol == "2 Pints") %>% apa.desc(attractiveness)
goggles %>% filter(alcohol == "4 Pints") %>% apa.desc(attractiveness)
# Single Cell Mean
goggles %>% filter(alcohol == "4 Pints", gender == "Female") %>%
apa.desc(attractiveness)
}
[Package apaText version 0.1.7 Index]