{
  "_id": "6acf3241d9de2f3f33fc8f79",
  "Package": "survinger",
  "Title": "Design-Adjusted Inference for Pathogen Lineage Surveillance",
  "Version": "0.1.1",
  "Authors@R": "person(\"Cuiwei\", \"Gao\", , \"48gaocuiwei@gmail.com\",\nrole = c(\"aut\", \"cre\", \"cph\"))",
  "Description": "Provides tools for optimizing sequencing resource\nallocation and estimating pathogen lineage prevalence under\nreal-world genomic surveillance conditions. Implements\nconstrained allocation optimization for limited sequencing\ncapacity across multiple regions and sample sources. Includes\nHorvitz-Thompson and post-stratified estimators that account\nfor unequal sequencing rates, delay-adjusted nowcasting for\nright-censored reporting data, and combined design-weighted\ndelay-corrected inference with uncertainty propagation.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/CuiweiG/survinger,\nhttps://cuiweig.github.io/survinger",
  "BugReports": "https://github.com/CuiweiG/survinger/issues",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Repository": "https://cuiweig.r-universe.dev",
  "Date/Publication": "2026-04-16 19:52:58 UTC",
  "RemoteUrl": "https://github.com/cuiweig/survinger",
  "RemoteRef": "HEAD",
  "RemoteSha": "1a4906d4c20dfa5ccd823a98bdeee17523ba98ea",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-14 07:35:48 UTC",
    "User": "root"
  },
  "Author": "Cuiwei Gao [aut, cre, cph]",
  "Maintainer": "Cuiwei Gao <48gaocuiwei@gmail.com>",
  "_user": "cuiweig",
  "_type": "src",
  "_file": "survinger_0.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/f504378ba278e6555f3246f7f224f8c1c52dd9289fa91734e5acd6f8e534fd3e",
  "_filesize": 2171674,
  "_sha256": "f504378ba278e6555f3246f7f224f8c1c52dd9289fa91734e5acd6f8e534fd3e",
  "_expires": "2027-01-22T07:41:51.000Z",
  "_created": "2026-10-14T07:35:48.000Z",
  "_published": "2026-10-14T07:41:53.854Z",
  "_buildurl": "https://github.com/r-universe/cuiweig/actions/runs/38528987108",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 115737315266,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11877327907"
    },
    {
      "job": 115737315267,
      "time": 162,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11876849702"
    },
    {
      "job": 115737315245,
      "time": 174,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11877288157"
    },
    {
      "job": 115737315355,
      "time": 198,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11876998626"
    },
    {
      "job": 115736133047,
      "time": 197,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11876834263"
    },
    {
      "job": 115737315360,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11877217696"
    },
    {
      "job": 115737315339,
      "time": 115,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11876609842"
    },
    {
      "job": 115737315419,
      "time": 131,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11877770113"
    },
    {
      "job": 115737315252,
      "time": 120,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11876864475"
    }
  ],
  "_upstream": "https://github.com/cuiweig/survinger",
  "_commit": {
    "id": "1a4906d4c20dfa5ccd823a98bdeee17523ba98ea",
    "author": "CuiweiG <48gaocuiwei@gmail.com>",
    "committer": "CuiweiG <48gaocuiwei@gmail.com>",
    "message": "Add community contribution files (CONTRIBUTING, CODE_OF_CONDUCT, issue templates, codemeta)\n",
    "time": 1776369178
  },
  "_maintainer": {
    "name": "Cuiwei Gao",
    "email": "48gaocuiwei@gmail.com",
    "login": "cuiweig",
    "mastodon": "@cuiweigao@mastodon.social",
    "twitter": "@CuiweiG23",
    "description": "R package developer · Biostatistics · Mechanical engineering · Data analysis",
    "uuid": 199837382
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "version": ">= 2.0.0",
      "role": "Imports"
    },
    {
      "package": "cli",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.4.0",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "Matrix",
      "role": "Suggests"
    },
    {
      "package": "nloptr",
      "version": ">= 2.0.0",
      "role": "Suggests"
    },
    {
      "package": "survey",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    },
    {
      "package": "vctrs",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "cuiweig",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-13",
      "n": 49
    },
    {
      "week": "2026-14",
      "n": 6
    },
    {
      "week": "2026-15",
      "n": 7
    },
    {
      "week": "2026-16",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0-rc1",
      "date": "2026-03-27"
    },
    {
      "name": "v0.1.0",
      "date": "2026-03-28"
    }
  ],
  "_topics": [
    "biostatistics",
    "epidemiology",
    "horvitz-thompson",
    "pathogen-surveillance",
    "survey-sampling"
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "cuiweig",
      "count": 64,
      "uuid": 199837382
    }
  ],
  "_userbio": {
    "uuid": 199837382,
    "type": "user",
    "name": "Cuiwei Gao",
    "followers": 2,
    "description": "R package developer · Biostatistics · Mechanical engineering · Data analysis"
  },
  "_downloads": {
    "count": 343,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/survinger"
  },
  "_devurl": "https://github.com/cuiweig/survinger",
  "_pkgdown": "https://cuiweig.github.io/survinger",
  "_searchresults": 20,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/survinger.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/cuiweig/survinger",
  "_realowner": "cuiweig",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-04-02"
    },
    {
      "version": "0.1.1",
      "date": "2026-04-05"
    }
  ],
  "_exports": [
    "glance",
    "surv_adjusted_prevalence",
    "surv_bind",
    "surv_compare_allocations",
    "surv_compare_estimates",
    "surv_design",
    "surv_design_effect",
    "surv_detection_probability",
    "surv_estimate",
    "surv_estimate_delay",
    "surv_filter",
    "surv_lineage_prevalence",
    "surv_naive_prevalence",
    "surv_nowcast_lineage",
    "surv_optimize_allocation",
    "surv_plot_allocation",
    "surv_plot_sequencing_rates",
    "surv_power_curve",
    "surv_prevalence_by",
    "surv_quality",
    "surv_report",
    "surv_reporting_probability",
    "surv_required_sequences",
    "surv_sensitivity",
    "surv_set_weights",
    "surv_simulate",
    "surv_table",
    "surv_update_rates",
    "theme_survinger",
    "tidy"
  ],
  "_datasets": [
    {
      "name": "sarscov2_surveillance",
      "title": "Example SARS-CoV-2 genomic surveillance data",
      "object": "sarscov2_surveillance",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "glance.surv",
      "title": "One-row summary of survinger model",
      "topics": [
        "glance.surv",
        "glance.surv_adjusted",
        "glance.surv_delay_fit",
        "glance.surv_prevalence"
      ]
    },
    {
      "page": "plot.surv",
      "title": "Plot methods for survinger objects",
      "topics": [
        "plot.surv",
        "plot.surv_adjusted",
        "plot.surv_allocation",
        "plot.surv_delay_fit",
        "plot.surv_design",
        "plot.surv_nowcast",
        "plot.surv_prevalence"
      ]
    },
    {
      "page": "surv_adjusted_prevalence",
      "title": "Combined design-weighted and delay-adjusted prevalence",
      "topics": [
        "as.data.frame.surv_adjusted",
        "print.surv_adjusted",
        "surv_adjusted_prevalence"
      ]
    },
    {
      "page": "surv_optimize_allocation",
      "title": "Optimize sequencing allocation across strata",
      "topics": [
        "as.data.frame.surv_allocation",
        "print.surv_allocation",
        "surv_optimize_allocation"
      ]
    },
    {
      "page": "surv_estimate_delay",
      "title": "Estimate reporting delay distribution",
      "topics": [
        "print.surv_delay_fit",
        "surv_estimate_delay"
      ]
    },
    {
      "page": "surv_design",
      "title": "Create a genomic surveillance design object",
      "topics": [
        "print.summary.surv_design",
        "print.surv_design",
        "summary.surv_design",
        "surv_design"
      ]
    },
    {
      "page": "surv_nowcast_lineage",
      "title": "Nowcast lineage counts correcting for reporting delays",
      "topics": [
        "as.data.frame.surv_nowcast",
        "print.surv_nowcast",
        "surv_nowcast_lineage"
      ]
    },
    {
      "page": "surv_lineage_prevalence",
      "title": "Estimate lineage prevalence with design weights",
      "topics": [
        "as.data.frame.surv_prevalence",
        "print.surv_prevalence",
        "surv_lineage_prevalence"
      ]
    },
    {
      "page": "sarscov2_surveillance",
      "title": "Example SARS-CoV-2 genomic surveillance data",
      "topics": [
        "sarscov2_surveillance"
      ]
    },
    {
      "page": "surv_bind",
      "title": "Combine multiple prevalence estimates",
      "topics": [
        "surv_bind"
      ]
    },
    {
      "page": "surv_compare_allocations",
      "title": "Compare multiple allocation strategies",
      "topics": [
        "surv_compare_allocations"
      ]
    },
    {
      "page": "surv_compare_estimates",
      "title": "Compare weighted vs naive prevalence estimates",
      "topics": [
        "surv_compare_estimates"
      ]
    },
    {
      "page": "surv_design_effect",
      "title": "Compute design effect over time",
      "topics": [
        "surv_design_effect"
      ]
    },
    {
      "page": "surv_detection_probability",
      "title": "Variant detection probability under current design",
      "topics": [
        "surv_detection_probability"
      ]
    },
    {
      "page": "surv_estimate",
      "title": "Pipe-friendly surveillance analysis",
      "topics": [
        "surv_estimate"
      ]
    },
    {
      "page": "surv_filter",
      "title": "Subset a surveillance design by filter criteria",
      "topics": [
        "surv_filter"
      ]
    },
    {
      "page": "surv_naive_prevalence",
      "title": "Compute naive (unweighted) lineage prevalence",
      "topics": [
        "surv_naive_prevalence"
      ]
    },
    {
      "page": "surv_plot_allocation",
      "title": "Plot allocation plan",
      "topics": [
        "surv_plot_allocation"
      ]
    },
    {
      "page": "surv_plot_sequencing_rates",
      "title": "Plot sequencing rate inequality across strata",
      "topics": [
        "surv_plot_sequencing_rates"
      ]
    },
    {
      "page": "surv_power_curve",
      "title": "Compute power curve for detection across prevalence range",
      "topics": [
        "plot.surv_power_curve",
        "surv_power_curve"
      ]
    },
    {
      "page": "surv_prevalence_by",
      "title": "Estimate prevalence by subgroup",
      "topics": [
        "surv_prevalence_by"
      ]
    },
    {
      "page": "surv_quality",
      "title": "Compute surveillance quality metrics",
      "topics": [
        "surv_quality"
      ]
    },
    {
      "page": "surv_report",
      "title": "Generate a comprehensive surveillance system report",
      "topics": [
        "surv_report"
      ]
    },
    {
      "page": "surv_reporting_probability",
      "title": "Compute cumulative reporting probability",
      "topics": [
        "surv_reporting_probability"
      ]
    },
    {
      "page": "surv_required_sequences",
      "title": "Required sequences for target detection probability",
      "topics": [
        "surv_required_sequences"
      ]
    },
    {
      "page": "surv_sensitivity",
      "title": "Sensitivity analysis across methods",
      "topics": [
        "surv_sensitivity"
      ]
    },
    {
      "page": "surv_set_weights",
      "title": "Override design weights with custom values",
      "topics": [
        "surv_set_weights"
      ]
    },
    {
      "page": "surv_simulate",
      "title": "Simulate genomic surveillance data",
      "topics": [
        "surv_simulate"
      ]
    },
    {
      "page": "surv_table",
      "title": "Format prevalence results for knitr tables",
      "topics": [
        "surv_table"
      ]
    },
    {
      "page": "surv_update_rates",
      "title": "Update sequencing rates in a surveillance design",
      "topics": [
        "surv_update_rates"
      ]
    },
    {
      "page": "theme_survinger",
      "title": "Publication-quality ggplot2 theme",
      "topics": [
        "theme_survinger"
      ]
    },
    {
      "page": "tidy.surv",
      "title": "Extract tidy estimates from survinger objects",
      "topics": [
        "tidy.surv",
        "tidy.surv_adjusted",
        "tidy.surv_allocation",
        "tidy.surv_delay_fit",
        "tidy.surv_nowcast",
        "tidy.surv_prevalence"
      ]
    }
  ],
  "_readme": "https://github.com/cuiweig/survinger/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate",
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "delay-correction.Rmd",
      "filename": "delay-correction.html",
      "title": "Delay-Adjusted Nowcasting",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The right-truncation problem",
        "Estimating the delay distribution",
        "Reporting probability",
        "Nowcasting",
        "Combined design + delay correction",
        "Choosing a delay distribution"
      ],
      "created": "2026-03-27 20:47:15",
      "modified": "2026-03-27 20:47:15",
      "commits": 1
    },
    {
      "source": "survinger.Rmd",
      "filename": "survinger.html",
      "title": "Introduction to survinger",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The problem",
        "What survinger does",
        "Quick start",
        "Comparing weighted vs naive estimates",
        "Optimizing resource allocation",
        "Delay correction",
        "Combined correction",
        "Detection power",
        "How survinger differs from phylosamp",
        "Next steps"
      ],
      "created": "2026-03-27 20:23:42",
      "modified": "2026-03-27 20:23:42",
      "commits": 1
    },
    {
      "source": "allocation-optimization.Rmd",
      "filename": "allocation-optimization.html",
      "title": "Optimizing Sequencing Resource Allocation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why allocation matters",
        "The three objectives",
        "Example",
        "Optimize for minimum MSE",
        "Compare all strategies",
        "With minimum coverage constraints",
        "Choosing an objective"
      ],
      "created": "2026-03-27 20:47:15",
      "modified": "2026-03-27 20:47:15",
      "commits": 1
    },
    {
      "source": "real-world-ecdc.Rmd",
      "filename": "real-world-ecdc.html",
      "title": "Real-World Case Study: European COVID-19 Genomic Surveillance",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Motivation",
        "Data source",
        "Setting up the design",
        "Sequencing inequality",
        "The bias problem: weighted vs naive",
        "Optimal resource allocation",
        "Delay correction and nowcasting",
        "Combined correction",
        "Key takeaways",
        "Reproducibility"
      ],
      "created": "2026-03-27 22:27:47",
      "modified": "2026-03-27 22:27:47",
      "commits": 1
    }
  ],
  "_score": 5.204119982655925,
  "_indexed": true,
  "_nocasepkg": "survinger",
  "_universes": [
    "cuiweig"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-14T07:38:25.000Z",
      "distro": "resolute",
      "commit": "1a4906d4c20dfa5ccd823a98bdeee17523ba98ea",
      "fileid": "https://r2.ropensci.org/8f00e9d4a4a151380ef53a5f6040137d2a8762ac1fa96e906e1b1d26c103ac0c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuiweig/actions/runs/38528987108"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-10-14T07:37:59.000Z",
      "distro": "resolute",
      "commit": "1a4906d4c20dfa5ccd823a98bdeee17523ba98ea",
      "fileid": "https://r2.ropensci.org/b123f74583d6e790ce76f1b6afbd05be130f768eadf2a63a19f1e2e4b59ac2ca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuiweig/actions/runs/38528987108"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-14T07:38:55.000Z",
      "commit": "1a4906d4c20dfa5ccd823a98bdeee17523ba98ea",
      "fileid": "https://r2.ropensci.org/8a03be2c278673f9593353b3b08345db3895a61bc154ad35804ea8f6d0583d5c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuiweig/actions/runs/38528987108"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-10-14T07:40:05.000Z",
      "commit": "1a4906d4c20dfa5ccd823a98bdeee17523ba98ea",
      "fileid": "https://r2.ropensci.org/8ba2a0041a126438433ac5bdbc6c8904b3a24f4893516fb3db83abb8ad4dfc87",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuiweig/actions/runs/38528987108"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-10-14T07:37:55.000Z",
      "commit": "1a4906d4c20dfa5ccd823a98bdeee17523ba98ea",
      "fileid": "https://r2.ropensci.org/c7d3c855835c3998db0175c24c189276352890a29fe35de5e8ba318e0318d9ec",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cuiweig/actions/runs/38528987108"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-14T07:36:57.000Z",
      "commit": "1a4906d4c20dfa5ccd823a98bdeee17523ba98ea",
      "fileid": "https://r2.ropensci.org/d9784e507a33787c9510fce682f17a965fa33991c3f245fc63c4081e0e8f974f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuiweig/actions/runs/38528987108"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-14T07:37:13.000Z",
      "commit": "1a4906d4c20dfa5ccd823a98bdeee17523ba98ea",
      "fileid": "https://r2.ropensci.org/5fec6d84ec36e50d42c9265c1c4986f27fb2ef687fdddbb7138a9714f86399b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuiweig/actions/runs/38528987108"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-10-14T07:37:03.000Z",
      "commit": "1a4906d4c20dfa5ccd823a98bdeee17523ba98ea",
      "fileid": "https://r2.ropensci.org/293987f33430bebe79dc42e6585bbc7a396d81a95608ad4b447bc71cac5f454d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cuiweig/actions/runs/38528987108"
    }
  ]
}