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

Description Usage Arguments Value

View source: R/experiments.R

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

1
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


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