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

View source: R/utils.R

noise_logitR Documentation

Adds noise to a data point on the logit scale

Description

Adds Gaussian noise to a point on the logit scale:

logit(y_noise) = logit(y) + e

where:

e \sim normal(0, sigma)

Usage

noise_logit(y, sigma)

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


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