create_glm_stratified_plot: create_glm_stratified_plot

Description Usage Arguments Value Examples

View source: R/regression.R

Description

Uses package 'effects' to create a stratified plot of GxE interactions. Incidentally, whenever you specify interactions in glm, ALWAYS USE G*E (otherwise, specify on 'gxe' flag)

Usage

1
create_glm_stratified_plot(model, G, E, gxe)

Arguments

model

GLM output with higher order (interaction) term in the format G*E

G

Genotype dosage variable (string)

E

Exposure variable (string)

gxe

T/F, just to tell function if GxE or ExG (sorry)

Value

A stratified GxE plot (NOT exported as *.png)

Examples

1
create_glm_stratified_plot(model1, "X5.12345678", "exposure", gxe = T)

KimAE/figifs documentation built on March 10, 2021, 9:31 p.m.