{
  "_id": "6a3a4e7b6265ec60d620de71",
  "Package": "spduration",
  "Title": "Split-Population Duration (Cure) Regression",
  "Version": "0.17.3.9000",
  "Authors@R": "c(\nperson(\"Andreas\", \"Beger\", , \"adbeger@gmail.com\", c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0003-1883-3169\")),\nperson(\"Daina\", \"Chiba\", , \"dchiba@essex.ac.uk\", \"aut\", comment = c(ORCID = \"0000-0002-9208-4373\")),\nperson(\"Daniel W.\", \"Hill, Jr.\", , \"dwhill@uga.edu\", \"aut\"),\nperson(\"Nils W.\", \"Metternich\", , \"n.metternich@ucl.ac.uk\", \"aut\", comment = c(ORCID = \"0000-0001-8757-0409\")),\nperson(\"Shahryar\", \"Minhas\", , \"hermes829@gmail.com\", \"aut\"),\nperson(\"Michael D.\", \"Ward\", , \"michael.don.ward@gmail.com\", c(\"aut\", \"cph\"), comment = c(ORCID = \"0000-0002-6561-6186\"))\n)",
  "Description": "An implementation of split-population duration regression\nmodels. Unlike regular duration models, split-population\nduration models are mixture models that accommodate the\npresence of a sub-population that is not at risk for failure,\ne.g. cancer patients who have been cured by treatment. This\npackage implements Weibull and Loglogistic forms for the\nduration component, and focuses on data with time-varying\ncovariates. These models were originally formulated in Boag\n(1949) and Berkson and Gage (1952), and extended in Schmidt and\nWitte (1989).",
  "Encoding": "UTF-8",
  "License": "GPL-3",
  "LazyData": "true",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/andybega/spduration,\nhttps://www.andybeger.com/spduration/,\nhttp://www.andybeger.com/spduration/",
  "BugReports": "https://github.com/andybega/spduration/issues",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://andybega.r-universe.dev",
  "Date/Publication": "2025-07-28 10:18:16 UTC",
  "RemoteUrl": "https://github.com/andybega/spduration",
  "RemoteRef": "HEAD",
  "RemoteSha": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-23 09:05:09 UTC",
    "User": "root"
  },
  "Author": "Andreas Beger [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-1883-3169>),\nDaina Chiba [aut] (ORCID: <https://orcid.org/0000-0002-9208-4373>),\nDaniel W. Hill, Jr. [aut],\nNils W. Metternich [aut] (ORCID:\n<https://orcid.org/0000-0001-8757-0409>),\nShahryar Minhas [aut],\nMichael D. Ward [aut, cph] (ORCID:\n<https://orcid.org/0000-0002-6561-6186>)",
  "Maintainer": "Andreas Beger <adbeger@gmail.com>",
  "MD5sum": "bfae3118e4ee93c39ef28b36cbec5750",
  "_user": "andybega",
  "_type": "src",
  "_file": "spduration_0.17.3.9000.tar.gz",
  "_fileid": "af85906e0768d9760dc99daa249c64493f449adaa68f291816cfcc356f3e0eb8",
  "_filesize": 733429,
  "_sha256": "af85906e0768d9760dc99daa249c64493f449adaa68f291816cfcc356f3e0eb8",
  "_created": "2026-06-23T09:05:09.000Z",
  "_published": "2026-06-23T09:14:35.780Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82917238158,
      "time": 206,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7816350359"
    },
    {
      "job": 82917238104,
      "time": 196,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7816345333"
    },
    {
      "job": 82917238093,
      "time": 209,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816351412"
    },
    {
      "job": 82917238078,
      "time": 244,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816363349"
    },
    {
      "job": 82917238121,
      "time": 208,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7816339538"
    },
    {
      "job": 82917238118,
      "time": 503,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7816439834"
    },
    {
      "job": 82917238096,
      "time": 268,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816350134"
    },
    {
      "job": 82917238144,
      "time": 475,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816434172"
    },
    {
      "job": 82916308411,
      "time": 291,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816270898"
    },
    {
      "job": 82917238028,
      "time": 155,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816329872"
    },
    {
      "job": 82917238095,
      "time": 188,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7816342577"
    },
    {
      "job": 82917238129,
      "time": 173,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7816336989"
    },
    {
      "job": 82917238146,
      "time": 227,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7816357131"
    }
  ],
  "_buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/andybega/spduration",
  "_commit": {
    "id": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
    "author": "Andreas Beger <adbeger@gmail.com>",
    "committer": "Andreas Beger <adbeger@gmail.com>",
    "message": "increment dev version\n",
    "time": 1753697896
  },
  "_maintainer": {
    "name": "Andreas Beger",
    "email": "adbeger@gmail.com",
    "login": "andybega",
    "bluesky": "@andybeger.bsky.social",
    "orcid": "0000-0003-1883-3169",
    "description": "Data Scientist",
    "uuid": 1353756
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.1.2",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "corpcor",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "forecast",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.11.0",
      "role": "Imports"
    },
    {
      "package": "separationplot",
      "role": "Imports"
    },
    {
      "package": "xtable",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "devtools",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    }
  ],
  "_owner": "andybega",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-30",
      "n": 3
    },
    {
      "week": "2025-31",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v0.17.3",
      "date": "2025-07-28"
    }
  ],
  "_topics": [
    "mixture-model",
    "regression",
    "split-population",
    "survival-analysis",
    "cpp"
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "andybega",
      "count": 171,
      "uuid": 1353756
    },
    {
      "user": "cassyld",
      "count": 8,
      "uuid": 1364446
    },
    {
      "user": "dainachiba",
      "count": 6,
      "uuid": 1934230
    },
    {
      "user": "nilswmetternich",
      "count": 3,
      "uuid": 1375467
    }
  ],
  "_userbio": {
    "uuid": 1353756,
    "type": "user",
    "name": "Andreas Beger",
    "followers": 82,
    "description": "Data Scientist"
  },
  "_downloads": {
    "count": 290,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/spduration"
  },
  "_devurl": "https://github.com/andybega/spduration",
  "_pkgdown": "https://www.andybeger.com/spduration/",
  "_searchresults": 45,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/spduration.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/andybega/spduration",
  "_realowner": "andybega",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.13.1",
      "date": "2015-07-09"
    },
    {
      "version": "0.14.0",
      "date": "2015-10-27"
    },
    {
      "version": "0.15.0",
      "date": "2016-03-01"
    },
    {
      "version": "0.15.1",
      "date": "2016-05-12"
    },
    {
      "version": "0.16.0",
      "date": "2017-04-11"
    },
    {
      "version": "0.17.0",
      "date": "2017-10-04"
    },
    {
      "version": "0.17.1",
      "date": "2018-05-04"
    },
    {
      "version": "0.17.2",
      "date": "2024-02-08"
    },
    {
      "version": "0.17.3",
      "date": "2025-08-01"
    }
  ],
  "_exports": [
    "add_duration",
    "panel_lag",
    "plot_hazard",
    "plot_hazard1",
    "plot_hazard2",
    "sepplot",
    "spdur"
  ],
  "_datasets": [
    {
      "name": "bscoup",
      "title": "B&S 2003 coup data",
      "object": "bscoup",
      "class": [
        "data.frame"
      ],
      "fields": [
        "countryid",
        "year",
        "couprisk",
        "recentcoups",
        "rwar",
        "milreg",
        "wealth",
        "instab",
        "coup",
        "africa",
        "eurnam",
        "samerica",
        "camerica",
        "regconf"
      ],
      "rows": 5463,
      "table": true,
      "tojson": true
    },
    {
      "name": "coups",
      "title": "Global coups, 1979 to 2010",
      "object": "coups",
      "class": [
        "data.frame"
      ],
      "fields": [
        "gwcode",
        "year",
        "coup1",
        "succ.coup",
        "democ",
        "autoc",
        "polity",
        "polity2",
        "regtrans"
      ],
      "rows": 5828,
      "table": true,
      "tojson": true
    },
    {
      "name": "model.coups",
      "title": "Model of global coups from 1979 to 2010",
      "object": "model.coups",
      "class": [
        "spdur"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "accessors",
      "title": "Accessor methods for spdur Objects",
      "topics": [
        "accessors",
        "coef.spdur",
        "logLik.spdur",
        "model.matrix.spdur",
        "nobs.spdur",
        "terms.spdur",
        "vcov.spdur"
      ]
    },
    {
      "page": "add_duration",
      "title": "Add duration variables to panel data",
      "topics": [
        "add_duration"
      ]
    },
    {
      "page": "AIC.spdur",
      "title": "AIC method for spdur",
      "topics": [
        "AIC.spdur"
      ]
    },
    {
      "page": "as.data.frame.spdur",
      "title": "Convert spdur results to summary data frame",
      "topics": [
        "as.data.frame.spdur"
      ]
    },
    {
      "page": "BIC.spdur",
      "title": "BIC method for spdur",
      "topics": [
        "BIC.spdur"
      ]
    },
    {
      "page": "bscoup",
      "title": "B&S 2003 coup data",
      "topics": [
        "bscoup"
      ]
    },
    {
      "page": "coups",
      "title": "Global coups, 1979 to 2010",
      "topics": [
        "coups"
      ]
    },
    {
      "page": "forecast.spdur",
      "title": "Forecast from a spdur model",
      "topics": [
        "forecast.spdur"
      ]
    },
    {
      "page": "model.coups",
      "title": "Model of global coups from 1979 to 2010",
      "topics": [
        "model.coups"
      ]
    },
    {
      "page": "panel_lag",
      "title": "Lag panel data",
      "topics": [
        "panel_lag"
      ]
    },
    {
      "page": "plot_hazard",
      "title": "Plot hazard function",
      "topics": [
        "plot_hazard"
      ]
    },
    {
      "page": "plot_hazard1",
      "title": "Plot conditional hazard rate",
      "topics": [
        "plot_hazard1"
      ]
    },
    {
      "page": "plot_hazard2",
      "title": "Simulate and plot hazard function",
      "topics": [
        "plot_hazard2"
      ]
    },
    {
      "page": "plot.spdur",
      "title": "Plot split-duration model results.",
      "topics": [
        "plot.spdur"
      ]
    },
    {
      "page": "predict.spdur",
      "title": "Predict methods for spdur Objects",
      "topics": [
        "fitted.spdur",
        "predict.spdur",
        "residuals.spdur"
      ]
    },
    {
      "page": "print.summary.spdur",
      "title": "Print a split-population duration model results summary",
      "topics": [
        "print.summary.spdur"
      ]
    },
    {
      "page": "sepplot",
      "title": "Generate a Separation Plot",
      "topics": [
        "sepplot"
      ]
    },
    {
      "page": "spdur",
      "title": "Split-population duration (cure) regression",
      "topics": [
        "spdur"
      ]
    },
    {
      "page": "spduration",
      "title": "Split-Population Duration (Cure) Regression Models",
      "topics": [
        "spduration-package",
        "spduration"
      ]
    },
    {
      "page": "summary.spdur",
      "title": "Summarize split-population duration results",
      "topics": [
        "summary.spdur"
      ]
    },
    {
      "page": "xtable.spdur",
      "title": "Create export table for a split-duration model",
      "topics": [
        "xtable.spdur"
      ]
    }
  ],
  "_pkglogo": "https://github.com/andybega/spduration/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/andybega/spduration/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "base64enc",
    "bslib",
    "cachem",
    "checkmate",
    "cli",
    "cluster",
    "colorspace",
    "corpcor",
    "cpp11",
    "data.table",
    "digest",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "forecast",
    "foreign",
    "Formula",
    "fracdiff",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "highr",
    "Hmisc",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "lattice",
    "lifecycle",
    "lmtest",
    "magrittr",
    "MASS",
    "memoise",
    "mime",
    "nlme",
    "nnet",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "rmarkdown",
    "rpart",
    "rstudioapi",
    "S7",
    "sass",
    "scales",
    "separationplot",
    "stringi",
    "stringr",
    "timeDate",
    "tinytex",
    "urca",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xtable",
    "yaml",
    "zoo"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Splitting it Up: The spduration Split-population Duration Regression Package",
      "author": "Andreas Beger, Daniel W. Hill, Jr., Nils W. Metternich, Shahryar Minhas, and Michael D. Ward",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Immune populations and inference of duration processes",
        "Model development",
        "Fit a split-population model on coups data",
        "Out-of-sample testing",
        "Additional discussion",
        "Censoring considerations",
        "Alternative packages",
        "Conclusion",
        "References"
      ],
      "created": "2017-04-06 12:04:13",
      "modified": "2025-07-28 09:19:28",
      "commits": 8
    }
  ],
  "_score": 5.732393759822969,
  "_indexed": true,
  "_nocasepkg": "spduration",
  "_universes": [
    "andybega"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:08:24.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "238a2b93a521904b42d2fb6873837be1ec8f21c3e3fbcc9c8f10e486e42457e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:08:10.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "0aa81c3901ae056c5781c86380960e5a9d6e99bd4cb150d0a7c8aaf37355e2df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:08:26.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "093cb862ca4007737d1dde1342e7c47f33f96c0b65ed7a9934ec93cc10ece280",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:08:54.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "816f3a2bc2ecd5ad4b9ca1abf6ee34d3dd651d8212d0b72d93c69719e85534ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:08:04.000Z",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "e8f74d424daa638eef0b56dbaadb71998850fdc33206d9aaec521708f8f765ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:11:06.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "13e3a1b31171a457cd7005b3fd91996a73bf7f3240d554290c654fcabf91cf6a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:08:17.000Z",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "e565b35c7fb995e302eccb071d4694679fdb5bb0378bd6c3d9d79862c3ad0e50",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:10:35.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "ca4b88aa41a9d34a5afc5b86c45ac85238679e75228ce0aae111e94b0461475f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:08:06.000Z",
      "arch": "emscripten",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "c06a203e52b8d1f4923e8271e503bdc43d2e813f07722976a36dc6cb4a758643",
      "status": "success",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:06:52.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "71eb0f87009684f3521154e5d7f9c9a7fd6b3064281fee2554a35da330ba5ae0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:07:05.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "6abbd910f556bc1f573112138a0df5e7448396de305d5e24b0f5200782c2c622",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.17.3.9000",
      "date": "2026-06-23T09:07:24.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "dbe93836006f067e44082db169bf24ac90e90c7e9d0f98ced9f508a9170a216c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/28014755515"
    }
  ]
}