generate_two_samples: Generates samples of measured melatonin values at two lux...

View source: R/experiments.R

generate_two_samplesR Documentation

Generates samples of measured melatonin values at two lux levels

Description

The samples are generated by sampling (without replacement) individuals from a supplied tibble representing a virtual experiment. These samples can either be from different individuals (for a between-type study) or from the same individuals measured twice (for a within-type study).

Usage

generate_two_samples(is_between, lux_1, lux_2, n, population_df)

Arguments

is_between

a Boolean indicating whether experiment is within or between type

lux_1

first measured lux value

lux_2

second measured lux value

n

number of individuals in sample

population_df

a tibble representing a virtual experiment

Value

a list of two sets of measured melatonin values


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