
useDynLib("tram", .registration = TRUE)

import("mlt")
import("variables")
import("basefun")
import("Formula")
importFrom("methods", "as")
importFrom("sandwich", "vcovCL", "estfun")
importFrom("multcomp", "cftest", "adjusted_calpha", "univariate_calpha", "glht")
importFrom("stats", "model.matrix", "coef", "vcov", "nobs", "predict", "quantile", "na.omit",
           "logLik", "model.response", "model.weights", "model.offset", "terms", "as.formula",
           "printCoefmat", "qqline", "qqplot", "qunif", "variable.names", "pchisq",
           "model.frame", "pnorm", "qnorm", "sigma", "residuals", "qchisq", "approx", "spline",
           "confint", "relevel", "resid", "ecdf", "dnorm", "weights", "lm")
import("Matrix")
importFrom("survival", "survfit", "Surv", "coxph.control")
importFrom("graphics", "plot", "lines", "polygon")

export(tram, tram_data, Coxph, Aareg, Colr, Polr, Lm, BoxCox, Survreg, Lehmann, 
       mtram, score_test, perm_test, PI, mmlt)

S3method("as.mlt", "tram")
S3method("model.matrix", "tram")
S3method("coef", "tram")
S3method("coef", "Lm")
S3method("coef", "Survreg")
S3method("coef", "mtram")
S3method("vcov", "tram")
S3method("nobs", "tram")
S3method("logLik", "tram")
S3method("logLik", "mtram")
S3method("estfun", "tram")
S3method("predict", "tram")
S3method("summary", "tram")
S3method("model.frame", "tram")
S3method("terms", "tram")
S3method("print", "tram")
S3method("print", "summary.tram")
S3method("plot", "tram")
S3method("update", "tram")
S3method("residuals", "tram")
S3method("profile", "tram")
S3method("score_test", "tram")
S3method("perm_test", "tram")
S3method("score_test", "coxph")
S3method("perm_test", "coxph")
S3method("confint", "htest")
S3method("confint", "htests")

S3method("logLik", "mmlt")
S3method("coef", "mmlt")
S3method("vcov", "mmlt")
S3method("predict", "mmlt")
S3method("summary", "mmlt")
S3method("print", "summary.mmlt")
S3method("print", "mmlt")
