{
  "_id": "6ad9e34fdb07788da70aa81d",
  "Package": "LatencyA",
  "Type": "Package",
  "Title": "Latency Analysis in Epidemiological Studies Using Weighted\nCumulative Exposures",
  "Version": "1.0.2",
  "Authors@R": "c(person(given = \"Fuyu\",family = \"Guo\",email = \"fuyuguo@hsph.harvard.edu\", role = c(\"aut\", \"cre\")),\nperson(given = \"Zihan\", family = \"Qian\", email = \"zqian2@mgh.harvard.edu\", role =  \"aut\"),\nperson(given = \"Molin\", family = \"Wang\", email = \"stmow@channing.harvard.edu\", role =  \"aut\"))",
  "Maintainer": "Fuyu Guo <fuyuguo@hsph.harvard.edu>",
  "Description": "Implements weighted cumulative exposure Cox proportional\nhazards models for latency analysis with repeatedly measured,\ntime-varying exposures. Instead of entering every lagged\nexposure as a separate and highly correlated covariate, the\nlag-specific log hazard ratios are constrained to follow a\nsmooth function of the time since exposure, parameterized by\nnatural cubic splines or polynomials, so that the susceptible\nwindow of an exposure can be identified from the estimated\nlag-risk curve. Functions are provided to fit models with a\nprespecified number of knots or polynomial degree, to select\nthe number of knots by a grid search or the spline terms by a\nstepwise search using the Akaike or Bayesian information\ncriterion, and to extract lag-specific log hazard ratios with\ntheir variances. For the data-driven model selection\nprocedures, inference is based on a cluster bootstrap that\nresamples subjects, which can be run sequentially or in\nparallel. The methods are described in Guo, Qian, Wang, Wang,\nRosner and Wang (2026) \"Taking Into Account the Susceptible\nWindow for Exposures in Cox Proportional Hazards Model: A Way\nUsing Splines to Model the Lag-Risk Relationship\"\n<doi:10.1002/sim.70755>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Config/roxygen2/version": "8.0.0",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-22 10:14:33 UTC",
    "User": "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",
  "_user": "fyguo",
  "_type": "src",
  "_file": "LatencyA_1.0.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/732ed0311322b9e0372a050159d2c6c77fc6336175fbc93b15dcea9c13ed68aa",
  "_filesize": 1730821,
  "_sha256": "732ed0311322b9e0372a050159d2c6c77fc6336175fbc93b15dcea9c13ed68aa",
  "_expires": "2027-01-30T10:19:57.000Z",
  "_created": "2026-10-22T10:14:33.000Z",
  "_published": "2026-10-22T10:19:59.694Z",
  "_upstream": "https://github.com/cran/LatencyA",
  "_status": "success",
  "_maintainer": {
    "name": "Fuyu Guo",
    "email": "fuyuguo@hsph.harvard.edu",
    "login": "fyguo",
    "description": "",
    "uuid": 61261156
  },
  "_jobs": [
    {
      "job": 119767082617,
      "time": 159,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12418900862"
    },
    {
      "job": 119767082791,
      "time": 236,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12418511959"
    },
    {
      "job": 119767082613,
      "time": 229,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12419200203"
    },
    {
      "job": 119767082526,
      "time": 213,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12419125453"
    },
    {
      "job": 119763951127,
      "time": 439,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12417933148"
    },
    {
      "job": 119767082624,
      "time": 278,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12418073423"
    },
    {
      "job": 119767082566,
      "time": 116,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12417688943"
    },
    {
      "job": 119767082666,
      "time": 115,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12419030405"
    },
    {
      "job": 119767082764,
      "time": 175,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12417858550"
    }
  ],
  "_buildurl": "https://github.com/r-universe/fyguo/actions/runs/39760703892",
  "_commit": {
    "id": "814f6605f43c2f66d9042ce2fd8201c0c24ff292",
    "author": "Fuyu Guo <fuyuguo@hsph.harvard.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.0.2\n",
    "time": 1792591802
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Hmisc",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "furrr",
      "role": "Imports"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-43",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.0.2",
      "date": "2026-10-21"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "fyguo",
      "count": 1,
      "uuid": 61261156
    }
  ],
  "_userbio": {
    "uuid": 61261156,
    "type": "user",
    "name": "fyGuo",
    "followers": 7
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/LatencyA"
  },
  "_searchresults": 1,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/LatencyA.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_realowner": "fyguo",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0.2",
      "date": "2026-10-21"
    }
  ],
  "_exports": [
    "CoxKnotsearch",
    "CoxKnotsearch_boot",
    "CoxNCSpline",
    "CoxPoly",
    "CoxTermsearch",
    "CoxTermsearch_boot",
    "extract_CoxKnotsearch",
    "extract_CoxNCSpline",
    "extract_CoxPoly",
    "extract_CoxTermsearch"
  ],
  "_datasets": [
    {
      "name": "sim_data",
      "title": "example A simulated data for the use of example",
      "object": "example",
      "class": [
        "data.frame"
      ],
      "fields": [
        "age_start",
        "lag0",
        "lag1",
        "lag2",
        "lag3",
        "lag4",
        "lag5",
        "lag6",
        "lag7",
        "lag8",
        "lag9",
        "lag10",
        "lag11",
        "lag12",
        "lag13",
        "lag14",
        "lag15",
        "lag16",
        "lag17",
        "lag18",
        "lag19",
        "lag20",
        "lag21",
        "lag22",
        "lag23",
        "lag24",
        "lag25",
        "lag26",
        "lag27",
        "lag28",
        "lag29",
        "lag30",
        "id",
        "cumExposure",
        "lambda",
        "failure_time",
        "failure",
        "age_end"
      ],
      "rows": 9246,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "CoxKnotsearch",
      "title": "This function implments GridSearch of natural cubic splines in Cox regression for latency analysis This is GreadSearching by knots",
      "topics": [
        "CoxKnotsearch"
      ]
    },
    {
      "page": "CoxKnotsearch_boot",
      "title": "This function conduct bootstraps for @CoxKnotsearch",
      "topics": [
        "CoxKnotsearch_boot"
      ]
    },
    {
      "page": "CoxNCSpline",
      "title": "This function implments natural cubic splines in Cox regression for latency analysis",
      "topics": [
        "CoxNCSpline"
      ]
    },
    {
      "page": "CoxPoly",
      "title": "This is a function to implement polynomial Cox regression for latency analysis",
      "topics": [
        "CoxPoly"
      ]
    },
    {
      "page": "CoxTermsearch",
      "title": "This function implments Stepwise model selection by terms of natural cubic splines in Cox regression for latency analysis This is GreadSearching by knots",
      "topics": [
        "CoxTermsearch"
      ]
    },
    {
      "page": "CoxTermsearch_boot",
      "title": "This function conduct bootstraps for @CoxTermsearch",
      "topics": [
        "CoxTermsearch_boot"
      ]
    },
    {
      "page": "extract_CoxKnotsearch",
      "title": "This is a function to extract log HR based on the resuls from CoxKnotsearch",
      "topics": [
        "extract_CoxKnotsearch"
      ]
    },
    {
      "page": "extract_CoxNCSpline",
      "title": "This is a function to extract log HR based on the resuls from CoxNCSpline",
      "topics": [
        "extract_CoxNCSpline"
      ]
    },
    {
      "page": "extract_CoxPoly",
      "title": "This is a function to extract log HR based on the resuls from CoxPoly",
      "topics": [
        "extract_CoxPoly"
      ]
    },
    {
      "page": "extract_CoxTermsearch",
      "title": "This is a function to extract log HR based on the resuls from CoxTermsearch",
      "topics": [
        "extract_CoxTermsearch"
      ]
    },
    {
      "page": "resample_clusters",
      "title": "This is a function to help resemple clusters for bootstrap. It is adapted from the function \"clusterboot\" in the R package \"fpc\".",
      "topics": [
        "resample_clusters"
      ]
    },
    {
      "page": "sim_data",
      "title": "example A simulated data for the use of example",
      "topics": [
        "sim_data"
      ]
    }
  ],
  "_readme": "https://github.com/cran/LatencyA/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "base64enc",
    "bslib",
    "cachem",
    "checkmate",
    "cli",
    "cluster",
    "codetools",
    "colorspace",
    "cpp11",
    "data.table",
    "digest",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "foreign",
    "Formula",
    "fs",
    "furrr",
    "future",
    "ggplot2",
    "globals",
    "glue",
    "gridExtra",
    "gtable",
    "highr",
    "Hmisc",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "listenv",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mime",
    "nnet",
    "parallelly",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "rlang",
    "rmarkdown",
    "rpart",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "survival",
    "tinytex",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_score": 1.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "latencya",
  "_universes": [
    "fyguo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-10-22T10:17:02.000Z",
      "distro": "resolute",
      "commit": "814f6605f43c2f66d9042ce2fd8201c0c24ff292",
      "fileid": "https://r2.ropensci.org/df165d050c692a567b001e39a002ba959e7085d77bcbf03db55eabb0252ccb91",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fyguo/actions/runs/39760703892"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.2",
      "date": "2026-10-22T10:17:59.000Z",
      "distro": "resolute",
      "commit": "814f6605f43c2f66d9042ce2fd8201c0c24ff292",
      "fileid": "https://r2.ropensci.org/f37ba5834c1ff103fce60ac97c07a4a0152723c14507f31a226d4f4a17bea32e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fyguo/actions/runs/39760703892"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-10-22T10:18:07.000Z",
      "commit": "814f6605f43c2f66d9042ce2fd8201c0c24ff292",
      "fileid": "https://r2.ropensci.org/0ec1453a90f5dcad377b59388fe6cbba1c0b1bf1627ee9912c15143921ea2a1c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fyguo/actions/runs/39760703892"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.2",
      "date": "2026-10-22T10:17:33.000Z",
      "commit": "814f6605f43c2f66d9042ce2fd8201c0c24ff292",
      "fileid": "https://r2.ropensci.org/fbbd1e382b7af4d88cfd27e10734a263e2a73b0cc0774cf611b032935117db82",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fyguo/actions/runs/39760703892"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.2",
      "date": "2026-10-22T10:19:33.000Z",
      "commit": "814f6605f43c2f66d9042ce2fd8201c0c24ff292",
      "fileid": "https://r2.ropensci.org/750d7d6c7b693c9d2e715ecdbb1944602ad3ffd015e79e15e2e12001441d9b62",
      "status": "success",
      "buildurl": "https://github.com/r-universe/fyguo/actions/runs/39760703892"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-10-22T10:15:54.000Z",
      "commit": "814f6605f43c2f66d9042ce2fd8201c0c24ff292",
      "fileid": "https://r2.ropensci.org/8f676f950204fc0cb5dfba5950c02ad95e9ce7f2c83d9466f9120fbe690e558e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fyguo/actions/runs/39760703892"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-10-22T10:15:46.000Z",
      "commit": "814f6605f43c2f66d9042ce2fd8201c0c24ff292",
      "fileid": "https://r2.ropensci.org/41c86f63dbb22bd7cf23ea750ce4dd6c8335577d28dfcc7d09a48df23f906b46",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fyguo/actions/runs/39760703892"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.2",
      "date": "2026-10-22T10:16:52.000Z",
      "commit": "814f6605f43c2f66d9042ce2fd8201c0c24ff292",
      "fileid": "https://r2.ropensci.org/2ee6a39b28c346d68b76bb8ef204c53821066942873adf29759762e52256d3ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fyguo/actions/runs/39760703892"
    }
  ]
}