importFrom("methods", "as", "is", "new", "coerce")

importFrom("stats", "lm", "loess", "na.exclude", "na.omit", "predict", "runif")

importFrom("stats", "as.formula", "coef", "complete.cases", "cov2cor",

importFrom(stats, model.matrix, na.omit, optim, rbinom)

importFrom(stats, model.matrix, na.omit, optim, rbinom, dnorm)

importFrom("graphics", "axis", "box", "legend", "lines", "par", "plot")

importFrom("grDevices", "devAskNewPage", "nclass.FD", "nclass.Sturges", "nclass.scott")

importFrom("utils", "setTxtProgressBar", "txtProgressBar", "capture.output", "combn")

importFrom("utils", "setTxtProgressBar", "txtProgressBar", "capture.output", "combn",

importFrom("graphics", "axis", "legend", "lines", "plot", "text", "title")
importFrom("stats", "cov", "glm", "lm", "quantile", "rnorm", "sd")

importFrom("stats", "approx", "complete.cases", "ecdf", "ks.test",
"na.pass", "pchisq", "pnorm", "pt", "sd", "terms", "var")
export(balanceUV, ks.boot, Match, Matchby, MatchBalance, qqstats, summary.ks.boot, summary.Match, GenMatch, print.summary.Match, print.summary.ks.boot, print.summary.Matchby)

export(Matrix, SVD, as.Matrix, diagDet, expand, facmul, hilbert, lu,
# New definitions of generics that must be exported
# These will not be necessary after conversion to S4 classes
# used internally - should not be, but are, visible to users
# used internally - not intended to be visible to users

# Generics and functions defined in this package

## Currently, group generics need to be explicitly imported (Bug?):
importFrom("methods", Arith, Compare, Math, Math2, Summary, Complex)
## not yet:   "iMatrix", "lMatrix", "zMatrix",

"round", # "Math2" group (needs explicit setGeneric(.))

exportMethods("BIC", "anova", "coef", "confint", "deviance", "fitted", "fixef",
"formula", "lmer", "logLik", "plot", "ranef", "residuals", "resid",
"summary", "update", "vcov", "VarCorr", "with")

## need to provide them for 'hierarchy-analysis':

if(paste(R.version$major, R.version$minor, sep=".") >= "2.2") {
exportMethods("BIC", "anova", "coef", "confint", "deviance", "fitted",
"fixef", "formula", "lmer", "logLik", "mcmcsamp",
"plot", "ranef", "residuals", "resid", "simulate",