is_comparison_successful: Determines if a t-test has found a significant difference of...

View source: R/experiments.R

is_comparison_successfulR Documentation

Determines if a t-test has found a significant difference of the correct sign

Description

Determines if a t-test has found a significant difference of the correct sign

Usage

is_comparison_successful(vals_1, vals_2, lux_1, lux_2, fit)

Arguments

vals_1

set of melatonin values at first lux

vals_2

set of melatonin values at second lux

lux_1

first measured lux value

lux_2

second measured lux value

fit

a result of running t.test

Value

a named list comprising 'result': a binary value indicating test success (if=1) or failure (if=0) to detect difference of correct sign; and 'p_value': the p-value from the t test


mellux-project/melluxdrc documentation built on March 25, 2022, 8:09 p.m.