Learn R Programming

⚠️There's a newer version (0.8.0) of this package.Take me there.

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.7.0

License

MIT + file LICENSE

Maintainer

Bradley Saul

Last Published

May 6th, 2024

Functions in smd (0.7.0)

compute_smd

Compute the standardized mean difference
smd

Compute Standardized Mean Difference
variance_computations

Variance computations
compute_smd_var

Computes SMD variance
n_mean_var

Compute n, mean and variance
lapplyFUNpairwise

Apply a function pairwise along a list
check_for_two_levels

Checks whether a vector has more than two unique values
smd_tidier

Helper to clean up smd output
compute_smd_parts

Compute components of SMD