Description Usage Arguments Value Examples
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)
1 | create_glm_stratified_plot(model, G, E, gxe)
|
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) |
A stratified GxE plot (NOT exported as *.png)
1 | create_glm_stratified_plot(model1, "X5.12345678", "exposure", gxe = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.