Package: TTE
Type: Package
Title: Design and Analysis Tools for Target Trial Emulation
Version: 1.1.1
Date: 2026-07-23
Authors@R: 
    c(person("Hisashi", "Noma", email = "noma@ism.ac.jp",
             role = c("aut", "cre"),
             comment = c(ORCID = "0000-0002-2520-9949")))
Maintainer: Hisashi Noma <noma@ism.ac.jp>
Description: Design and analysis tools for target trial emulation using longitudinal observational data. Functions are provided for checking person-period data, expanding longitudinal data into sequentially nested trials, estimating inverse probability weights for intention-to-treat and per-protocol analyses, and assessing weight distributions and covariate balance. Additional functions fit weighted pooled discrete-time outcome models, obtain standardized risks and treatment contrasts, and estimate weighted Kaplan-Meier and Aalen-Johansen curves. Two worked examples based on fully synthetic data illustrate an active-comparator new-user study comparing sodium-glucose cotransporter 2 inhibitors with dipeptidyl peptidase-4 inhibitors and an analysis of sequentially nested trials comparing angiotensin receptor blocker and calcium channel blocker strategies.
Depends: R (>= 4.1.0)
Imports: graphics, nnet, sandwich, stats, utils
Suggests: testthat (>= 3.0.0)
License: GPL-3
Encoding: UTF-8
Config/testthat/edition: 3
NeedsCompilation: no
Packaged: 2026-07-23 07:39:04 UTC; nomah
Author: Hisashi Noma [aut, cre] (ORCID:
    <https://orcid.org/0000-0002-2520-9949>)
Repository: CRAN
Date/Publication: 2026-08-02 16:30:13 UTC
Built: R 4.6.1; ; 2026-08-04 23:52:31 UTC; windows
