Learn R Programming

GEint (version 1.1)

Misspecified Models for Gene-Environment Interaction

Description

The first major functionality is to compute the bias in regression coefficients of misspecified linear gene-environment interaction models. The most generalized function for this objective is GE_bias(). However GE_bias() requires specification of many higher order moments of covariates in the model. If users are unsure about how to calculate/estimate these higher order moments, it may be easier to use GE_bias_normal_squaredmis(). This function places many more assumptions on the covariates (most notably that they are all jointly generated from a multivariate normal distribution) and is thus able to automatically calculate many of the higher order moments automatically, necessitating only that the user specify some covariances. There are also functions to solve for the bias through simulation and non-linear equation solvers; these can be used to check your work. Second major functionality is to implement the Bootstrap Inference with Correct Sandwich (BICS) testing procedure, which we have found to provide better finite-sample performance than other inference procedures for testing GxE interaction. More details on these functions are available in Sun, Carroll, Christiani, and Lin (2018) .

Copy Link

Version

Install

install.packages('GEint')

Monthly Downloads

129

Version

1.1

License

GPL-3

Maintainer

Ryan Sun

Last Published

October 1st, 2025

Functions in GEint (1.1)

GE_nleqslv

GE_nleqslv.R #' Uses package nleqslv to get a numerical solution to the score equations, which we can use to check our direct solution from GE_bias().
GE_scoreeq_sim

GE_scoreeq_sim.R
GE_BICS

GE_BICS.R
GE_translate_inputs

GE_translate_inputs.R
GE_bias_normal_squaredmis

GE_bias_normal_squaredmis.R
GE_bias

GE_bias.R
GE_test_moment_calcs

GE_test_moment_calcs.R