generated_data: Artificial genetic & phenotype data, for purposes of package...

generated_dataR Documentation

Artificial genetic & phenotype data, for purposes of package tests

Description

Artificial genetic & phenotype data, for purposes of package tests

Usage

generated_data

Format

A data frame with 10000 rows and 1 variables:

g

gene count of 0, 1 or 2. Distibuted binomial with n=2 and p =0.3

u

"unmeasured" confounder N(0,1)

errorX

Error term for X, ~exp(1)

errorY

Error term for Y, ~N(0.1)

X

Exposure. X= 2+ 0.25*g + u + errorX

linear.Y

Linear outcome. Y = X + 0.8u + errorY

quadratic.Y

Quadratic outcome. Y= 2X^2 X + 0.8u + error Y

sqrt.Y

Square root outcome. Y = \sqrt{X} + 0.8*u+ errorY

log.Y

Log outcome. Y = \log(X) + 0.8*U +errorY

threshold.Y

X + 0.8* U +errorY if X>2 and 0.8U + errorY otherwise

fracpoly.Y

Fractional polynomial Y = X + 2/X + 0.8U + errorY


amymariemason/SUMnlmr documentation built on July 22, 2024, 10:03 a.m.