Package: LatencyA Type: Package Title: Latency Analysis in Epidemiological Studies Using Weighted Cumulative Exposures Version: 1.0.2 Authors@R: c(person(given = "Fuyu",family = "Guo",email = "fuyuguo@hsph.harvard.edu", role = c("aut", "cre")), person(given = "Zihan", family = "Qian", email = "zqian2@mgh.harvard.edu", role = "aut"), person(given = "Molin", family = "Wang", email = "stmow@channing.harvard.edu", role = "aut")) Maintainer: Fuyu Guo Description: Implements weighted cumulative exposure Cox proportional hazards models for latency analysis with repeatedly measured, time-varying exposures. Instead of entering every lagged exposure as a separate and highly correlated covariate, the lag-specific log hazard ratios are constrained to follow a smooth function of the time since exposure, parameterized by natural cubic splines or polynomials, so that the susceptible window of an exposure can be identified from the estimated lag-risk curve. Functions are provided to fit models with a prespecified number of knots or polynomial degree, to select the number of knots by a grid search or the spline terms by a stepwise search using the Akaike or Bayesian information criterion, and to extract lag-specific log hazard ratios with their variances. For the data-driven model selection procedures, inference is based on a cluster bootstrap that resamples subjects, which can be run sequentially or in parallel. The methods are described in Guo, Qian, Wang, Wang, Rosner and Wang (2026) "Taking Into Account the Susceptible Window for Exposures in Cox Proportional Hazards Model: A Way Using Splines to Model the Lag-Risk Relationship" . Imports: Hmisc, survival, stats, MASS, stringr, future, furrr License: MIT + file LICENSE Encoding: UTF-8 LazyData: true Depends: R (>= 4.1.0) Config/roxygen2/version: 8.0.0 NeedsCompilation: no Packaged: 2026-10-22 10:14:33 UTC; root Author: Fuyu Guo [aut, cre], Zihan Qian [aut], Molin Wang [aut] Config/pak/sysreqs: cmake make libicu-dev libuv1-dev Repository: https://fyguo.r-universe.dev Date/Publication: 2026-10-21 14:10:02 UTC RemoteUrl: https://github.com/cran/LatencyA RemoteRef: HEAD RemoteSha: 814f6605f43c2f66d9042ce2fd8201c0c24ff292