Description Usage Arguments Value Examples

This function computes the score test statistic and corresponding p-value for the GxE test with the SEAGLE algorithm with input data that have been prepared with the prep.SEAGLE function

1 | ```
SEAGLE(obj.SEAGLE, init.tau = 0.5, init.sigma = 0.5, pv = "liu")
``` |

`obj.SEAGLE` |
Input data prepared with prep.SEAGLE function |

`init.tau` |
Initial estimate for tau (Default is 0.5) |

`init.sigma` |
Initial estimate for sigma (Default is 0.5) |

`pv` |
Method of obtaining p-value (Either "liu" or "davies", Default is liu) |

Score-like test statistic T for the GxE effect and corresponding p-value

1 2 3 | ```
dat <- makeSimData(H=cosihap, n=500, L=10, gammaG=1, gammaGE=0, causal=4, seed=1)
objSEAGLE <- prep.SEAGLE(y=dat$y, X=dat$X, intercept=1, E=dat$E, G=dat$G)
res <- SEAGLE(objSEAGLE, init.tau=0.5, init.sigma=0.5)
``` |

SEAGLE documentation built on Nov. 6, 2021, 1:06 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.