Learn R Programming

smd

An R package for computing the standardized mean difference between two groups for various data types.

library(smd)

x <- rnorm(100)
g <- rep(1:2, each = 50)

smd(x, g, std.error = TRUE)
#>   term  estimate std.error
#> 1    2 0.1653336 0.2003414

See using smd for more details.

Copy Link

Version

Install

install.packages('smd')

Monthly Downloads

3,471

Version

0.8.0

License

MIT + file LICENSE

Maintainer

Bradley Saul

Last Published

February 12th, 2025

Functions in smd (0.8.0)

compute_smd_parts

Compute components of SMD
variance_computations

Variance computations
compute_smd_var

Computes SMD variance
smd_tidier

Helper to clean up smd output
smd

Compute Standardized Mean Difference
lapplyFUNpairwise

Apply a function pairwise along a list
n_mean_var

Compute n, mean and variance
check_for_two_levels

Checks whether a vector has more than two unique values
compute_smd

Compute the standardized mean difference