importFrom("stats", "binomial", "coef", "cor", "dnorm", "formula",
"model.response", "optim", "pnorm", "polym", "predict",

importFrom("stats", "coef", "dist", "ecdf", "lm", "median", "nls",

importFrom("stats", "coef", "cutree", "dist", "dnorm", "hclust", "var")

importFrom(stats, rnorm, runif, rweibull, anova, uniroot, integrate,

importFrom("stats", "cov", "na.action", "na.omit", "var")

importFrom("stats", "p.adjust", "pbinom", "runif", "sd")

importFrom("stats", "as.formula", "lm", "loess", "median", "quantile")
importFrom("graphics", "hist.default", "lines", "par", "title")
importFrom("EBImage", "colorMode", "otsu", "readImage", "channel", "imageData")
importFrom("ggplot2", "annotate", "geom_abline", "geom_point", "ggplot", "ylab")

import(CompQuadForm, SKAT, geeM, pls, splines)
importFrom("stats", "cor", "lm", "rbinom", "gaussian", "pchisq", "quantile", "sd", "var")

import(CompQuadForm, SKAT, geeM, splines, mvtnorm)
importFrom("stats", "cor", "lm", "rbinom", "gaussian", "pchisq", "quantile", "sd", "var", "dbeta", "dchisq", "integrate", "qchisq","qnorm")

export(Flowmatrix, Ldei, Ldei.lim, Ldei.limfile,  Ldei.double,
Variables, Varranges, Xranges, Xsample, Setup.character,

Variables, Varranges, Xranges, Xsample, PrintMat )

importFrom("graphics", "abline", "axis", "box", "mtext", "par",

importFrom("stats", "lm", "pf", "rnorm", "uniroot", "var")

## Generics and functions defined in this package

"dev.off", "gray", "heat.colors", "jpeg", "terrain.colors",
importFrom("graphics", "abline", "box", "contour", "lines", "mtext",
"par", "persp", "plot", "points", "text")
importFrom("stats", "AIC", "BIC", "anova", "density", "median",
"na.omit", "pf", "plogis", "pt", "qqline", "qqnorm", "qt",
"quantile", "relevel", "resid", "rnorm", "sd")

"est_lm_cov_manifest", "est_lm_mixed", "long2matrices", "long2wide","search.model.LM","est_mc_basic", "est_mc_cov_latent")

import("MASS", "MultiLCIRT", "stats", "mvtnorm", "mmm")
export("bootstrap_lm_basic", "bootstrap_lm_cov_latent", "bootstrap_lm_basic_cont", "bootstrap_lm_cov_latent_cont", "decoding", "draw_lm_basic",
"draw_lm_cov_latent", "draw_lm_mixed", "draw_lm_basic_cont", "draw_lm_cov_latent_cont", "est_lm_basic", "est_lm_cov_latent",
"est_lm_cov_manifest", "est_lm_mixed", "est_lm_basic_cont", "est_lm_cov_latent_cont", "long2matrices", "long2wide","search.model.LM","est_mc_basic", "est_mc_cov_latent")