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

View source: R/experiments.R

is_comparison_successful_one_luxR Documentation

Determines if a t-test has found a significant difference of the correct sign for a single lux treated vs untreated experiment

Description

Determines if a t-test has found a significant difference of the correct sign for a single lux treated vs untreated experiment

Usage

is_comparison_successful_one_lux(
  vals_untreated,
  vals_treated,
  is_treated_higher,
  fit
)

Arguments

vals_untreated

responses for the untreated individuals

vals_treated

responses for the treated individuals

is_treated_higher

Boolean indicating whether treated group has a higher response

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.