generated_data | R Documentation |
Artificial genetic & phenotype data, for purposes of package tests
generated_data
A data frame with 10000 rows and 1 variables:
gene count of 0, 1 or 2. Distibuted binomial with n=2 and p =0.3
"unmeasured" confounder N(0,1)
Error term for X, ~exp(1)
Error term for Y, ~N(0.1)
Exposure. X= 2+ 0.25*g + u + errorX
Linear outcome. Y = X + 0.8u + errorY
Quadratic outcome. Y= 2X^2 X + 0.8u + error Y
Square root outcome. Y = \sqrt{X} + 0.8*u+ errorY
Log outcome. Y = \log(X) + 0.8*U +errorY
X + 0.8* U +errorY
if X>2
and 0.8U + errorY
otherwise
Fractional polynomial Y = X + 2/X + 0.8U + errorY
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.