useDynLib(gamlr, .registration = TRUE)

import(Matrix)
importFrom("graphics", "abline", "axTicks", "axis", "matplot", "plot",
             "points", "segments")
importFrom("methods", "as")
importFrom("stats", "coef", "logLik", "na.omit", "predict", "sd", "AIC", "lm")

export(gamlr, cv.gamlr, AICc, naref, doubleML)

S3method(plot,gamlr)
S3method(coef,gamlr)
S3method(predict,gamlr)
S3method(summary,gamlr)
S3method(print,gamlr)
S3method(logLik,gamlr)

S3method(plot,cv.gamlr)
S3method(coef,cv.gamlr)
S3method(predict,cv.gamlr)
S3method(summary,cv.gamlr)
S3method(print,cv.gamlr)
