Skip to contents

Calculates a statistical significance test

Usage

sig_test(
  var,
  group = NULL,
  test_options = list(),
  test = NULL,
  var_name = NULL
)

Arguments

var

A variable (a vector).

group

A variable containing the grouping information.

test_options

Named list containing test options.

test

Name of a statistical test.

var_name

Name of variable to be tested (only used in warning messages).

Value

A list of test test results.

Examples

cont_var <- c(1, 2, 3)
sig_test(cont_var)
#> $p
#> [1] 0.0741799
#> 
#> $test_name
#> [1] "Student's one-sample t-test"
#>