d_pooled_sd | R Documentation |
Standardized mean difference with pooled standard deviation
d_pooled_sd(
data,
var,
group.var,
group.values,
rename.output = TRUE,
infer = FALSE
)
data |
A data frame. |
var |
A continuous variable for which difference is estimated. |
group.var |
The name of the group variable. |
group.values |
Vector of length 2, group values (e.g. c("male", "female) or c(0,1)). |
rename.output |
Logical. Should the output values be renamed according to the group.values? Default TRUE. |
infer |
Logical. Statistical inference with Welch test? (default FALSE) |
Descriptive statistics and mean differences
d_pooled_sd(iris[iris$Species == "setosa" | iris$Species == "versicolor", ],
var = "Petal.Length", group.var = "Species",
group.values = c("setosa", "versicolor"), infer = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.