noise_logit: Adds noise to a data point on the logit scale

Description Usage Arguments Details Value

View source: R/utils.R

Description

Adds Gaussian noise to a point on the logit scale:

logit(y_noise) = logit(y) + e

where:

e \sim normal(0, sigma)

Usage

1

Arguments

y

A melatonin suppression value between 0 and 1

sigma

Scale of Gaussian noise

Details

Then we convert back to the normal scale via a logistic transform.

Value

A noisy version of y bound between 0 and 1


ben18785/chronodoseresponse documentation built on Feb. 24, 2022, 4:07 p.m.