{
  "_id": "6a12c1a9acfb0bcc41d1df61",
  "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-05-24 09:07:52 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": "43221a1b61e5c6a6492637b1745d0e09",
  "_user": "andybega",
  "_type": "src",
  "_file": "spduration_0.17.3.9000.tar.gz",
  "_fileid": "68665f15fd47239573afb21e2c00dccc40f89d41bf0699683902cd6868a8574f",
  "_filesize": 734428,
  "_sha256": "68665f15fd47239573afb21e2c00dccc40f89d41bf0699683902cd6868a8574f",
  "_created": "2026-05-24T09:07:52.000Z",
  "_published": "2026-05-24T09:15:21.184Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77585923483,
      "time": 180,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183922799"
    },
    {
      "job": 77585923498,
      "time": 210,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183925773"
    },
    {
      "job": 77585923510,
      "time": 183,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183922957"
    },
    {
      "job": 77585923471,
      "time": 198,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183924657"
    },
    {
      "job": 77585923518,
      "time": 193,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7183920471"
    },
    {
      "job": 77585923514,
      "time": 376,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7183939462"
    },
    {
      "job": 77585923508,
      "time": 199,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183921473"
    },
    {
      "job": 77585923517,
      "time": 382,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183939633"
    },
    {
      "job": 77585644586,
      "time": 291,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183903616"
    },
    {
      "job": 77585923473,
      "time": 165,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183921273"
    },
    {
      "job": 77585923482,
      "time": 192,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7183923995"
    },
    {
      "job": 77585923478,
      "time": 182,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7183922973"
    },
    {
      "job": 77585923487,
      "time": 169,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7183921671"
    }
  ],
  "_buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514",
  "_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",
    "description": "Data Scientist"
  },
  "_downloads": {
    "count": 238,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/spduration"
  },
  "_devurl": "https://github.com/andybega/spduration",
  "_pkgdown": "https://www.andybeger.com/spduration/",
  "_searchresults": 40,
  "_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.681241237375588,
  "_indexed": true,
  "_nocasepkg": "spduration",
  "_universes": [
    "andybega"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:10:36.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "ed021b744e9777651bf261049358b5f4abf9e9210fc6ea204b357ff43d294d2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:10:58.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "e01f33ec997db5a0aa7491b1cd789819a8becf5773bfcb9ff80cc2cff8cab7fd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:10:39.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "f135829dfcc4d3a0d432e4aa291c79b32e054690669f175342f26e4417c7c699",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:10:50.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "a1dee07cb24f7646b9d46fcb3e1c3fa457a65909a988f5414b9109b7883476dd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:10:29.000Z",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "095398d46ac421e60a0197b50add402e8f7dcee6d334765e7f7c00b797703d61",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:12:57.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "28c0635f651ceff941c512fa270bb085591d62f01821f053b207f11b763ec434",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:10:30.000Z",
      "arch": "aarch64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "2f89e3408b8a9bc80621d225f4e1ff7a4c6a541d36ad8fdb047cf84699502ac2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:12:34.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "a34cb117d54a9b0e02f666f6b0220c8f8ea56433af315ea83e62055a380ecd62",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:10:56.000Z",
      "arch": "emscripten",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "8c11da91065e0215a0e205b4100e88d80d5d2a382e1182502dacd15d6eac604c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:09:37.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "404ba0f9bc302393d74d03e0e8e5a780a681192a931be418b7aa91e67761efb5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:09:31.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "b570bf5c1ced2281f0b11ae6b49788bc725c36878b4bec1e8345c68b76849b5c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.17.3.9000",
      "date": "2026-05-24T09:09:28.000Z",
      "arch": "x86_64",
      "commit": "c4baf0ab9791a569c09c19fbb347b937e0a9d1ed",
      "fileid": "c8ba6ed9727b080029389ed074b93adf4cd2bb2405906e6ef40c52f88fd685d6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andybega/actions/runs/26357063514"
    }
  ]
}