export("hglm", "hglm2", "Beta", "CAR", "SAR", "lrt")

export("hglm", "hglm2", "Beta", "CAR", "lrt")

importFrom("stats", "Gamma", "as.formula", "coef", "dbeta", "dbinom",
"deviance", "dgamma", "dnorm", "gaussian", "get_all_vars",
"printCoefmat", "pt", "qqline", "qqnorm", "residuals",
export("hglm", "hglm2", "Beta", "CAR", "SAR", "lrt", "inverse.gamma", "inverse.sqrt")

importFrom("stats", "as.formula", "coef", "dbeta", "dbinom",
"deviance", "dgamma", "dnorm", "Gamma", "gaussian",
"model.weights", "pchisq", "printCoefmat", "pt", "qqline",
"qqnorm", "residuals", "rgamma", "sd", "terms", "var")

importFrom("graphics", "axis", "image", "legend", "lines", "plot",
importFrom("stats", "fft", "mvfft", "rnorm", "runif", "spec.taper",

# Register shared object for loading with library.dynam

useDynLib(hier.part, .registration = TRUE, .fixes = "C_")
importFrom("stats", "formula", "glm", "lm", "logLik", "runif", "sd")

importFrom("graphics", "abline", "axis", "mtext", "par", "plot", "points", "segments")

importFrom(stats, "as.dist", "complete.cases", "dist", "quantile","rmultinom", "t.test", "var", "var.test", "weighted.mean")

importFrom("stats", "cov", "density", "mad", "medpolish", "sd", "var")

importFrom("graphics", "legend", "lines", "par", "plot.new", "points")
importFrom("stats", "p.adjust", "pnorm", "smooth.spline", "t.test")

importFrom("graphics", "abline", "layout", "legend", "lines",
"panel.smooth", "par", "plot", "points", "text", "title")
importFrom("stats", "bw.nrd0", "coef", "cov", "dbeta", "density",
"dnorm", "end", "formula", "integrate", "lm", "mad",
"median", "optim", "optimize", "pchisq", "pnorm", "qchisq",
"qnorm", "residuals", "rnorm", "runif", "sd", "start",
importFrom("utils", "data", "read.csv", "read.delim", "tail")

importClassesFrom( Rcpp, "C++Object", "C++Class", "Module" )

importFrom( Rcpp, Module, loadRcppModules )

importFrom(grDevices, dev.off, pdf, postscript, rgb,  "col2rgb", "colors")

export(apval_aSPU, apval_Bai1996, apval_Cai2014, apval_Chen2010, apval_Chen2014, apval_Sri2008, epval_aSPU, epval_Bai1996, epval_Cai2014, epval_Chen2010, epval_Chen2014, epval_Sri2008)
import(mvtnorm, MASS)
importFrom("stats", "cov", "cov2cor", "dnorm", "pnorm")