Package: LatencyA 1.0.2

LatencyA: Latency Analysis in Epidemiological Studies Using Weighted Cumulative Exposures

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" <doi:10.1002/sim.70755>.

Authors:Fuyu Guo [aut, cre], Zihan Qian [aut], Molin Wang [aut]

LatencyA_1.0.2.tar.gz
LatencyA_1.0.2.zip(r-4.7-any)LatencyA_1.0.2.zip(r-4.6-any)LatencyA_1.0.2.zip(r-4.5-any)
LatencyA_1.0.2.tgz(r-4.6-any)LatencyA_1.0.2.tgz(r-4.5-any)
LatencyA_1.0.2.tar.gz(r-4.7-any)LatencyA_1.0.2.tar.gz(r-4.6-any)
LatencyA_1.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
LatencyA/json (API)

# Install 'LatencyA' in R:
install.packages('LatencyA', repos = c('https://fyguo.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:
  • sim_data - Example A simulated data for the use of example

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.70 score 1 scripts 10 exports 66 dependencies

Last updated from:814f6605f4. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK159
source / vignettesOK439
linux-releaseOK236
macos-releaseOK213
macos-oldrelOK229
windows-develOK116
windows-releaseOK175
windows-oldrelOK115
wasm-releaseOK278

Exports:CoxKnotsearchCoxKnotsearch_bootCoxNCSplineCoxPolyCoxTermsearchCoxTermsearch_bootextract_CoxKnotsearchextract_CoxNCSplineextract_CoxPolyextract_CoxTermsearch

Dependencies:backportsbase64encbslibcachemcheckmatecliclustercodetoolscolorspacecpp11data.tabledigestevaluatefarverfastmapfontawesomeforeignFormulafsfurrrfutureggplot2globalsgluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelistenvmagrittrMASSMatrixmemoisemimennetparallellypurrrR6rappdirsRColorBrewerrlangrmarkdownrpartrstudioapiS7sassscalesstringistringrsurvivaltinytexvctrsviridisLitewithrxfunyaml