import(methods, mvtnorm, ncvreg, actuar, mgcv)

import(methods, actuar, mvtnorm, mgcv, ncvreg, stats)

import(methods, mvtnorm, mgcv, ncvreg, stats)

useDynLib(momentfit, .registration = TRUE, .fixes="F_")
importFrom("methods", is, new, show, "slot<-", "slotNames", "validObject",
"getClassDef", "selectMethod", "callNextMethod", "as", "setAs",
importFrom("graphics", plot, polygon, grid, points, text)
"D", "numericDeriv", "sd", "optim", "lm", "pf", "coef", "update",
"fitted", "lm.fit", "pchisq", "pnorm", "printCoefmat", "anova",
"model.frame", "reformulate", "formula", "nlminb", "kernapply",
"constrOptim", "kernel", "confint", "qnorm", "uniroot", "getCall", "qchisq")
"hypothesisTest", "stsls", "sgmmfit", "gelfit", "summaryGel",
exportMethods(print, show, kernapply, coef,  model.matrix, bread, summary,
residuals, "[", vcovHAC, subset, update, vcov, plot, confint, merge)
export(momentModel, modelResponse, evalMoment, Dresiduals, modelDims, evalDMoment,
gmmFit, tsls, evalGmm, quadra, meatGmm, specTest, hypothesisTest, DWH,
printRestrict, restModel, getRestrict, gmm4, sysMomentModel, ThreeSLS,
rhoET, rhoEL, rhoEEL, rhoHD, Wu_lam, EEL_lam, REEL_lam, getLambda,
solveGel, rhoETEL, rhoETHD, ETXX_lam, gelFit, evalGel, getImpProb,

exportPattern("^[[:alpha:]]+")
importFrom("graphics", "abline", "axis", "box", "grid", "image", "par", "plot")
importFrom("stats", "as.dendrogram", "as.dist", "chisq.test", "hclust",
"kruskal.test", "lm", "median", "p.adjust", "pf", "quantile", "sd",
"t.test", "wilcox.test")

importFrom(utils, head, head.matrix, tail, tail.matrix)

importFrom(methods, show, "callGeneric", "callNextMethod", "getDataPart",

importFrom("graphics", "abline", "axis", "box", "image", "layout", "legend", "lines", "locator", "mtext", "par", "plot", "points", "polygon", "rect", "text")
importFrom("grDevices", "dev.list", "gray", "rainbow", "topo.colors")
importFrom("stats", "cor", "embed", "fft", "na.omit", "quantile", "rnorm", "spline")
importFrom("utils", "read.csv", "setTxtProgressBar", "txtProgressBar", "write.csv", "write.table")