{
  "_id": "6a61bf42f673e46fff56ecdc",
  "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-07-23 07:06:31 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>",
  "_user": "andybega",
  "_type": "src",
  "_file": "spduration_0.17.3.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/3aa04555dce577fc4a6764a8f6d642dc1777ee3e7d13c7deb24a331d5532147e",
  "_filesize": 734828,
  "_sha256": "3aa04555dce577fc4a6764a8f6d642dc1777ee3e7d13c7deb24a331d5532147e",
  "_expires": "2026-10-31T07:14:08.000Z",
  "_created": "2026-07-23T07:06:31.000Z",
  "_published": "2026-07-23T07:14:09.799Z",
  "_jobs": [
    {
      "job": 89141838345,
      "time": 215,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8555591853"
    },
    {
      "job": 89141838375,
      "time": 203,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8555587234"
    },
    {
      "job": 89141838389,
      "time": 199,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8555585833"
    },
    {
      "job": 89141838362,
      "time": 207,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8555589035"
    },
    {
      "job": 89141838340,
      "time": 245,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8555583178"
    },
    {
      "job": 89141838355,
      "time": 395,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8555645701"
    },
    {
      "job": 89141838343,
      "time": 239,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8555585042"
    },
    {
      "job": 89141838437,
      "time": 272,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8555607209"
    },
    {
      "job": 89140965872,
      "time": 287,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8555509356"
    },
    {
      "job": 89141838365,
      "time": 167,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8555573507"
    },
    {
      "job": 89141838327,
      "time": 199,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8555585905"
    },
    {
      "job": 89141838352,
      "time": 153,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8555568939"
    },
    {
      "job": 89141838374,
      "time": 204,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8555587684"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247",
  "_status": "success",
  "_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
  },
  "_distro": "resolute",
  "_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": 261,
    "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.1",
  "_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": "16-20260322-1ubuntu1",
      "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-07-23T07:09:54.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/84279eb0cfd4d7783e124ce552f96adedcfddac0784a90bfa845e57fe444443a",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:09:34.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/eb45558ff83c9f3f39af1b16db2c1662743c2fd46dab23015b6c2f89bcbf5a29",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:09:40.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/e12459937a7a90399ce7b4392c5d6a943327c5d8ed2adff178543ea4d5b9317c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:09:37.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/63f6313167f14637a31ef09f1a8f1b41253d8332de0a39a3e225bc25159ffc61",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:09:31.000Z",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/009ba4c8e154e93fa79eaa21289184602fcac7775dcd9c87a1edc5f83c6b66d5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:11:21.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/f2278116c50e32d1c0a37da0c6817d3f32180554fee4f9b2a0305403990ce001",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:09:16.000Z",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/d5e3e465cac3ec5abfc62045bd3fba91621c718d2b221bd90bd941782ef25eaa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:09:52.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/f36056058e5dde32837d3228fdfaa2ea073b8fb8a48a30e50e192bb7424f7cb1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:09:31.000Z",
      "arch": "emscripten",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/66a38db4eaa2df0781072031e4b9889ebfc4bbcb48d7ccfe56de6e7fe8d5f33b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:08:11.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/03c600513b41c031ea8c72d08f96e21a4913075d5103fb0d39926c5335106c99",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:08:11.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/8f47f2c71544fd780cd26c13fe5f1c0597a08f1ea514341c88e940789ee102ce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.17.3.9000",
      "date": "2026-07-23T07:08:27.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "https://r2.ropensci.org/5657c72bd2f8d20c77abcf3c44f3ffa99fae31eb0624e001dd28cdf3629f4bf9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/29986974247"
    }
  ]
}