Computes a one-sample or paired Student's t test.
input array
optional paired array
function options
significance level (default: 0.05)
alternative hypothesis (two-sided, less, or greater; default: 'two-sided')
two-sided
less
greater
mean under H0 (default: 0)
H0
first argument must have at least two elements
paired array must have the same length as the first argument
second argument must be either a numeric array or an options object
must provide valid options
test results
Computes a one-sample or paired Student's t test.
input array
optional paired array
function options
significance level (default: 0.05)
alternative hypothesis (
two-sided
,less
, orgreater
; default: 'two-sided')mean under
H0
(default: 0)first argument must have at least two elements
paired array must have the same length as the first argument
second argument must be either a numeric array or an options object
must provide valid options
test results