useDynLib(survival, .registration = TRUE)
importFrom(splines, spline.des, ns)
importFrom(stats, anova, approx, as.formula, coef, coefficients,
           contr.treatment, cor, delete.response, extractAIC, formula, 
           family, lm, logLik, makepredictcall, median, model.extract,
           model.frame, model.matrix, model.offset, model.response,
           model.weights, na.fail, na.pass, napredict, naprint, naresid,
           pchisq, pnorm, printCoefmat, predict, qnorm, quantile, qgamma,
           resid, residuals, rnorm, runif, stat.anova, terms, var, vcov,
           .checkMFClasses, .getXlevels)
importFrom(graphics, plot, points, lines, axis, box, matlines, matplot, 
           matpoints, par, segments,
           arrows, frame, strheight, strwidth, text)
importFrom(Matrix, expm)
importFrom(methods, as)
importFrom(utils, getS3method, type.convert, methods)
export(Surv, aeqSurv, aareg, agreg.fit,
       agexact.fit, attrassign, 
       basehaz, cch, clogit, cipoisson, cluster,
       coxph, cox.zph, coxph.control, coxph.detail, coxph.fit,
       coxph.wtest, finegray, format.Surv, 
       frailty,  frailty.gamma, 
       frailty.gaussian, frailty.t, is.Surv, 
       is.na.Surv, is.ratetable, 
       labels.survreg, match.ratetable, neardate,
       psurvreg, qsurvreg, dsurvreg,
       pspline, pyears, ratetableDate, 
       ridge, rsurvreg, statefig, strata, survConcordance,
       survSplit, survdiff, survexp,  survfit,
       survfit.formula,
       survfitcoxph.fit, survfitKM, survfitCI,
       survobrien,  
       survpenal.fit, survConcordance.fit,
       survreg, survreg.control, survreg.fit,
       survreg.distributions, survregDtest, tcut,
       tmerge, untangle.specials, yates, yates_setup)
export(Surv, ratetable)
S3method('[', aareg)
S3method('[', Surv)
S3method('[', cox.zph)
S3method('[', coxph.penalty)
S3method('[', ratetable)
S3method('[', survfit)
S3method('[', survfitms)
S3method('[', tcut)
S3method(Math, Surv)
S3method(Math, ratetable)
S3method(Ops, Surv)
S3method(Ops, ratetable)
S3method(Summary, Surv)
S3method(anova, coxph)
S3method(anova, coxphlist)
S3method(anova, survreg)
S3method(anova, survreglist)
S3method(as.character, Surv)
S3method(as.character, Surv)
S3method(as.data.frame, Surv)
S3method(as.matrix, ratetable)
S3method(as.matrix, Surv)
S3method(attrassign, default)
S3method(attrassign, lm)
S3method(extractAIC,coxph.penal)
S3method(dim, survfit)
S3method(dim, survfitms)
S3method(format, Surv)
S3method(is.na, Surv)
S3method(is.na, coxph.penalty)
S3method(is.na, ratetable)
S3method(labels, survreg)
S3method(levels, tcut)
S3method(lines, aareg)
S3method(lines, survexp)
S3method(lines, survfit)
S3method(logLik, coxph)
S3method(logLik, survreg)
S3method(makepredictcall, pspline)
S3method(model.frame, coxph)
S3method(model.frame, survreg)
S3method(model.matrix, coxph)
S3method(model.matrix, survreg)
S3method(plot, aareg)
S3method(plot, cox.zph)
S3method(plot, survfit)
S3method(points, survfit)
S3method(predict, coxph)
S3method(predict, coxph.penal)
S3method(predict, pspline)
S3method(predict, survreg)
S3method(predict, survreg.penal)
S3method(print, Surv)
S3method(print, aareg)
S3method(print, cch)
S3method(print, clogit)
S3method(print, cox.zph)
S3method(print, coxph)
S3method(print, coxph.null)
S3method(print, coxph.penal)
S3method(print, pyears)
S3method(print, ratetable)
S3method(print, summary.cch)
S3method(print, summary.coxph)
S3method(print, summary.coxph.penal)
S3method(print, summary.survexp)
S3method(print, summary.survfit)
S3method(print, summary.survfitms)
S3method(print, summary.survreg)
S3method(print, survConcordance)
S3method(print, survdiff)
S3method(print, survexp)
S3method(print, survfit)
S3method(print, survfitms)
S3method(print, survreg)
S3method(print, survreg.penal)
S3method(print, yates)
S3method(quantile, survfit)
S3method(quantile, survfitms)
S3method(ratetableDate, POSIXt)
S3method(ratetableDate, Date)
S3method(ratetableDate, date)
S3method(ratetableDate, chron)
S3method(ratetableDate, default)
S3method(rep, Surv)
S3method(residuals, coxph)
S3method(residuals, coxph.null)
S3method(residuals, coxph.penal)
S3method(residuals, survreg)
S3method(residuals, survreg.penal)
S3method(summary, aareg)
S3method(summary, coxph)
S3method(summary, coxph.penal)
S3method(summary, ratetable)
S3method(summary, pyears)
S3method(summary, survexp)
S3method(summary, survfit)
S3method(summary, survfitms)
S3method(summary, survreg)
S3method(summary,cch)
S3method(survfit, coxph)
S3method(survfit, formula)
S3method(survfit, matrix)
S3method(survfit, Surv)
S3method(vcov, cch)
S3method(vcov, coxph)
S3method(vcov, survreg)
S3method(yates_setup, default)
S3method(yates_setup, glm)
S3method(yates_setup, coxph)
S3method('[', ratetable2)
S3method(is.na,ratetable2)

if(getRversion() >= "3.6.0")
    S3method(xtfrm, Surv)
