From f277387976f70dc28a7166c479a2063504a0e140 Mon Sep 17 00:00:00 2001 From: Daniel Sjoberg Date: Wed, 20 Mar 2024 14:11:54 -0700 Subject: [PATCH] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e43a7da..f233df8 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,15 @@ An `R` package for computing the standardized mean difference between two groups for various data types. -```r +``` r +library(smd) + x <- rnorm(100) g <- rep(1:2, each = 50) -smd(x, g) + +smd(x, g, std.error = TRUE) +#> term estimate std.error +#> 1 2 0.1653336 0.2003414 ``` See [using smd](https://bsaul.github.io/smd/articles/smd_usage.html) for more details.