import(Rcpp)
import(Matrix) 
import(foreach)
import(parallel)
importFrom("stats", "as.formula", "binomial", "dbeta", "glm", "model.frame",
"model.matrix", "na.omit", "na.pass", "pchisq", "dchisq", "qchisq", "var",
"pnorm", "uniroot", "integrate", "weights", "vcov")
importFrom("utils", "read.table", "write.table")
importFrom("CompQuadForm", "davies", "liu")
importFrom("data.table", "fread")
importFrom("GMMAT", "glmmkin", "glmm.score", "SMMAT")
useDynLib(MAGEE, .registration = TRUE, .fixes = "C_")
export(MAGEE, glmm.gei,  MAGEE.prep, MAGEE.lowmem, MAGEE.meta, glmm.gei.meta)

