View source: R/benchmark_score.R
benchmark_score | R Documentation |
Compare Score with a Benchmark
benchmark_score( data, column, benchmark, mean, sd, n, tail = "one", remove_missing = TRUE, input = "long", output = "console" )
data |
dataframe |
column |
a column of scores from the dataframe |
benchmark |
benchmark |
mean |
if input = "values", enter mean value |
sd |
if input = "values", enter standard deviation value |
n |
if input = "values", enter total number of scores |
tail |
one-tailed or two-tailed test |
remove_missing |
TRUE/FALSE (Default is TRUE) |
input |
Default: "long" - long form of data, "values" to pass values directly. If using this option, must specify mean, sd, and n. |
output |
Default: "console" - prints output in console and returns tibble invisibly. |
dataframe of results when saved to an object. show console output by default
scores <- 80 + 23 * scale(rnorm(172)) # 80 = mean, 23 = sd data <- data.frame(scores = scores) benchmark_score(data, scores, 67) data |> benchmark_score(scores, 67) benchmark_score(mean = 80, sd = 23, n = 172, benchmark = 67, input = "values")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.