powered by
Standardized mean difference with pooled standard deviation
d_pooled_sd( data, var, group.var, group.values, rename.output = TRUE, infer = FALSE )
Descriptive statistics and mean differences
A data frame.
A continuous variable for which difference is estimated.
The name of the group variable.
Vector of length 2, group values (e.g. c("male", "female) or c(0,1)).
Logical. Should the output values be renamed according to the group.values? Default TRUE.
Logical. Statistical inference with Welch test? (default FALSE)
d_pooled_sd(iris[iris$Species == "setosa" | iris$Species == "versicolor", ], var = "Petal.Length", group.var = "Species", group.values = c("setosa", "versicolor"), infer = TRUE )
Run the code above in your browser using DataLab