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

Description Usage Arguments Value

View source: R/experiments.R

Description

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

Usage

1
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


melsuppr-power-project/chronodoseresponse documentation built on Feb. 25, 2022, 10:58 a.m.