Description Usage Arguments Details Value Author(s) References See Also Examples
Linear regression model to test whether the intrapair differences in an outcome phenotype are due to intrapair differences in a predictor phenotype.
1 |
formula |
an object of class |
data |
a data frame containing the variables in the model. |
... |
additional arguments to be passed to |
Inspired by the implementation of Carlin, J. B. et al. (1994), this linear regression model without intercept tests allows evaluating whether intrapair differences in one or more predictor variables are related to intrapair differences in the outcome.
env_dif
returns an object of class
"lm".
Developed by Aldo Cordova-Palomera, following Carlin, J. B. et al. (1994).
Carlin, J. B., Gurrin, L. C., Sterne, J. A., Morley, R., & Dwyer, T. (2005). Regression models for twin studies: a critical review. International Journal of Epidemiology, 34(5), 1089-1099.
1 2 3 4 5 6 | data(flu_weight)
# The linear regression below tests whether the intrapair differences in weight
# (in kilograms) of a given twin-pair predict its intrapair differences in DNA
# methylation levels at a given genomic locus.
summary(unique_env_linear <- env_dif(DNAmeth ~ Weight, data=flu_weight))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.