export(cor.balance, cor.bootci, cor.LRtest, cor.LRtest.std, cor.unbalance,

importFrom("stats", "dnbinom", "dpois", "fitted", "model.frame",
"rbinom", "rgamma", "rnbinom", "rnorm", "rpois", "runif")

importFrom("stats", "binomial", "contrasts", "gaussian", "glm",
"model.response", "na.omit", "pchisq", "pnorm", "poisson",
"rbinom", "rnorm", "rpois", "sd", "update", "var")

importFrom("stats", "dnorm", "optim", "pnorm", "quantile")

exportPattern("^[^\\.]") # Exports all functions not beginning with a period.

importFrom("stats", "density", "qnorm", "qt", "quantile", "rbinom", "rnorm", "runif", "sd", "var")

importFrom("stats", "coef", "pnorm", "pt", "vcov")

### import functions from package openxlsx and xtable.
import(xtable)
import(openxlsx)
importFrom("stats", addmargins, chisq.test, cor, cor.test,
model.frame, na.exclude, na.pass, na.omit, na.fail)
importFrom("utils", capture.output)
### Functions to export to users.
export(
## String utility functions (strutil.R).
"%+%",             # Extends the add function for strings.
"%n%",             # Repeats s n time (usage: s %n% n)
numtostr,          # Converts a numeric to string. Used by print methods.
## Description of continuous variables (desc.R, corr.R, mean.table.R, xf.R).
correlation,       # This function compute correlation matrices
#  and associated tests.
## Description of categorical variables (freq.R, cross.R).
cross,             # This function creates a crosstab object which
# displays % and statistical test.
xtab,              # Corrects bugs in xtabs associated with NA managements.
## Complementary utility functions.
## Print methods.
print.cross,       # Print function for freq objects.
print.correlation, # Print function fo corr objects.
## sum/mean for a minimum number of valid values (sum.R and cross.R).
Total              # modification of sum that uses na.rm=TRUE as default
# and replaces a result of NA by 0.
)
### Declare S3 methods.
S3method(print, cross)
S3method(print, correlation)

xf,                # applies a function across a list of factors.