importFrom("stats", "as.formula", "coef", "cor", "delete.response", "lm", "model.frame", "model.matrix", "predict", "rnorm","sd","terms","var")
export(FindIt, summary.FindIt, predict.FindIt, plot.PredictFindIt,CausalANOVA, summary.CausalANOVA, plot.CausalANOVA,cv.CausalANOVA,plot.cv.CausalANOVA,test.CausalANOVA, ConditionalEffect)

export(EBFST, GstN, thetaWC.pair, read.genepop, clip.genepop)

export(EBFST, GstN, GstNC, thetaWC.pair, read.genepop, read.frequency, clip.genepop)

importFrom("stats", "optim", "rgamma", "sd", "as.dist")

export(GstN, GstNC, GstH, DJ, thetaWC.pair)

importFrom("stats", "optim", "rgamma", "sd", "as.dist", "cov", "lm", "logLik", "pnorm", "vcov")

importFrom("stats", "optim", "cov", "pnorm", "terms", "var")

export("prepareData", "prepareCalib", "calibrate", "lsmacof", "searchInc", "plotInc", "summaryInc")

export("findMatchingIndices", "prepareData", "prepareCalib", "updateCalib", "calibrate", "getInfoLevelForChr", "lsmacof", "searchInc", "plotInc", "summaryInc")

importFrom("graphics", "abline", "axis", "barplot", "hist", "layout","legend", "lines", "matplot", "par", "points", "text","title")
importFrom("stats", "cov", "cutree", "dist", "hclust", "kmeans","lsfit", "rmultinom","var")

function(lib, pkg) library.dynam("FitARMA", pkg, lib)

importFrom("stats", "acf", "optim", "rnorm", "toeplitz", "tsp")

import(mgcv)  ## imports ALL exported variables from mgcv package

importFrom("stats", "anova", "coef", "lm", "na.omit", "nls", "nls.control", "optim", "pf", "resid", "sortedXyData")

importFrom("stats", "cor", "median", "na.omit", "qf", "runif", "sd")
importFrom("utils", "read.csv", "read.table", "write.table", "flush.console", "stack")
importFrom("graphics", "mtext", "par", "plot", "rect")
importFrom("raster", "rasterToPoints", "res", "raster", "writeRaster", "plot", "plotRGB")

importFrom("graphics", "abline", "boxplot", "hist", "legend", "lines","par", "plot", "points")
importFrom("stats", "density", "dnorm", "median", "sd")

# Add manually the 2 last lines to use C functions in R functions