{
  "_id": "6a1eec54b401979e73412567",
  "Package": "flexsurv",
  "Type": "Package",
  "Title": "Flexible Parametric Survival and Multi-State Models",
  "Version": "2.3.2",
  "Date": "2024-08-17",
  "Authors@R": "c(person(\"Christopher\", \"Jackson\",\nemail=\"chris.jackson@mrc-bsu.cam.ac.uk\",\nrole=c(\"aut\", \"cre\")),\nperson(\"Paul\", \"Metcalfe\",\nrole=c(\"ctb\")),\nperson(\"Jordan\", \"Amdahl\",\nrole=c(\"ctb\")),\nperson(\"Matthew T.\", \"Warkentin\",\nrole = c(\"ctb\")),\nperson(\"Michael\", \"Sweeting\",\nrole = c(\"ctb\")),\nperson(\"Kevin\", \"Kunzmann\",\nrole = c(\"ctb\"))\n)",
  "Description": "Flexible parametric models for time-to-event data,\nincluding the Royston-Parmar spline model, generalized gamma\nand generalized F distributions.  Any user-defined parametric\ndistribution can be fitted, given at least an R function\ndefining the probability density or hazard. There are also\ntools for fitting and predicting from fully parametric\nmulti-state models, based on either cause-specific hazards or\nmixture models.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "URL": "https://github.com/chjackson/flexsurv,\nhttp://chjackson.github.io/flexsurv/",
  "BugReports": "https://github.com/chjackson/flexsurv/issues",
  "VignetteBuilder": "knitr",
  "LazyData": "yes",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://chjackson.r-universe.dev",
  "Date/Publication": "2026-02-18 11:50:20 UTC",
  "RemoteUrl": "https://github.com/chjackson/flexsurv-dev",
  "RemoteRef": "HEAD",
  "RemoteSha": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-19 09:21:04 UTC",
    "User": "root"
  },
  "Author": "Christopher Jackson [aut, cre],\nPaul Metcalfe [ctb],\nJordan Amdahl [ctb],\nMatthew T. Warkentin [ctb],\nMichael Sweeting [ctb],\nKevin Kunzmann [ctb]",
  "Maintainer": "Christopher Jackson <chris.jackson@mrc-bsu.cam.ac.uk>",
  "MD5sum": "f5f05399f6475c6542aa115cfaf841f4",
  "_user": "chjackson",
  "_type": "src",
  "_file": "flexsurv_2.3.2.tar.gz",
  "_fileid": "988e9d1bfa5d87b4df0a94006422d31bc02b2d8faf8e53b0cccbaccbbba0a470",
  "_filesize": 3807528,
  "_sha256": "988e9d1bfa5d87b4df0a94006422d31bc02b2d8faf8e53b0cccbaccbbba0a470",
  "_created": "2026-05-19T09:21:04.000Z",
  "_published": "2026-06-02T14:44:36.565Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79098098670,
      "time": 267,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7079687867"
    },
    {
      "job": 79098098971,
      "time": 269,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7079688408"
    },
    {
      "job": 79098099113,
      "time": 260,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7079685319"
    },
    {
      "job": 79098098436,
      "time": 276,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7079691104"
    },
    {
      "job": 79098099444,
      "time": 323,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7079691557"
    },
    {
      "job": 79098099285,
      "time": 780,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7079853527"
    },
    {
      "job": 79098098378,
      "time": 270,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7079675781"
    },
    {
      "job": 79098098577,
      "time": 459,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7079748809"
    },
    {
      "job": 79098098069,
      "time": 337,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7079592227"
    },
    {
      "job": 79098096798,
      "time": 164,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7361040583"
    },
    {
      "job": 79098098100,
      "time": 274,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7079690037"
    },
    {
      "job": 79098099225,
      "time": 256,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7079684070"
    },
    {
      "job": 79098098695,
      "time": 246,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7079680401"
    }
  ],
  "_buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/chjackson/flexsurv-dev",
  "_commit": {
    "id": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
    "author": "Chris Jackson <chris.jackson@mrc-bsu.cam.ac.uk>",
    "committer": "Chris Jackson <chris.jackson@mrc-bsu.cam.ac.uk>",
    "message": "Fixes #216 for flexsurvmix with partial_events\n",
    "time": 1771415420
  },
  "_maintainer": {
    "name": "Christopher Jackson",
    "email": "chris.jackson@mrc-bsu.cam.ac.uk",
    "login": "chjackson",
    "mastodon": "@cjackstats@fosstodon.org",
    "description": "Statistician and software developer",
    "uuid": 7807096
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "survival",
      "role": "Depends"
    },
    {
      "package": "R",
      "version": ">= 2.15.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "deSolve",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "mstate",
      "version": ">= 0.2.10",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "muhaz",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "role": "Imports"
    },
    {
      "package": "quadprog",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.11.5",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "rstpm2",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "statmod",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "splines2",
      "role": "Suggests"
    },
    {
      "package": "flexsurvcure",
      "role": "Suggests"
    },
    {
      "package": "survminer",
      "role": "Suggests"
    },
    {
      "package": "lubridate",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "colorspace",
      "role": "Suggests"
    },
    {
      "package": "eha",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "msm",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "TH.data",
      "role": "Suggests"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    }
  ],
  "_owner": "chjackson",
  "_selfowned": true,
  "_usedby": 48,
  "_updates": [
    {
      "week": "2025-27",
      "n": 4
    },
    {
      "week": "2025-46",
      "n": 2
    },
    {
      "week": "2025-50",
      "n": 2
    },
    {
      "week": "2025-51",
      "n": 3
    },
    {
      "week": "2026-08",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 67,
  "_contributors": [
    {
      "user": "chjackson",
      "count": 549,
      "uuid": 7807096
    },
    {
      "user": "mikesweeting",
      "count": 52,
      "uuid": 12608226
    },
    {
      "user": "pdmetcalfe",
      "count": 24,
      "uuid": 1857420
    },
    {
      "user": "jrdnmdhl",
      "count": 16,
      "uuid": 10935215
    },
    {
      "user": "ndunnewind",
      "count": 7,
      "uuid": 43117768
    },
    {
      "user": "mattwarkentin",
      "count": 5,
      "uuid": 27825069
    },
    {
      "user": "stephematician",
      "count": 5,
      "uuid": 12695305
    },
    {
      "user": "leonardommarques",
      "count": 3,
      "uuid": 20913220
    },
    {
      "user": "hfrick",
      "count": 2,
      "uuid": 12950918
    },
    {
      "user": "kkmann",
      "count": 2,
      "uuid": 2482236
    },
    {
      "user": "remlapmot",
      "count": 2,
      "uuid": 3777473
    },
    {
      "user": "ellessenne",
      "count": 1,
      "uuid": 10330005
    },
    {
      "user": "dmcalli2",
      "count": 1,
      "uuid": 8640663
    },
    {
      "user": "hadley",
      "count": 1,
      "uuid": 4196
    },
    {
      "user": "andbe",
      "count": 1,
      "uuid": 817361
    }
  ],
  "_userbio": {
    "uuid": 7807096,
    "type": "user",
    "name": "Chris Jackson",
    "description": "Statistician and software developer"
  },
  "_downloads": {
    "count": 13515,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/flexsurv"
  },
  "_mentions": 39,
  "_devurl": "https://github.com/chjackson/flexsurv",
  "_pkgdown": "http://chjackson.github.io/flexsurv/",
  "_searchresults": 868,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/flexsurv.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/chjackson/flexsurv",
  "_realowner": "chjackson",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.2",
      "date": "2011-11-09"
    },
    {
      "version": "0.1.3",
      "date": "2012-01-17"
    },
    {
      "version": "0.1.4",
      "date": "2012-03-24"
    },
    {
      "version": "0.1.5",
      "date": "2012-08-29"
    },
    {
      "version": "0.2",
      "date": "2013-05-15"
    },
    {
      "version": "0.3",
      "date": "2014-01-20"
    },
    {
      "version": "0.5",
      "date": "2014-09-22"
    },
    {
      "version": "0.6",
      "date": "2015-04-14"
    },
    {
      "version": "0.7",
      "date": "2015-11-13"
    },
    {
      "version": "0.7.1",
      "date": "2016-03-24"
    },
    {
      "version": "1.0.0",
      "date": "2016-05-11"
    },
    {
      "version": "1.1",
      "date": "2017-03-27"
    },
    {
      "version": "1.1.1",
      "date": "2019-03-18"
    },
    {
      "version": "2.0",
      "date": "2021-02-22"
    },
    {
      "version": "2.1",
      "date": "2021-09-13"
    },
    {
      "version": "2.2",
      "date": "2022-06-18"
    },
    {
      "version": "2.2.1",
      "date": "2022-12-22"
    },
    {
      "version": "2.2.2",
      "date": "2023-02-01"
    },
    {
      "version": "2.3",
      "date": "2024-04-21"
    },
    {
      "version": "2.3.2",
      "date": "2024-08-17"
    }
  ],
  "_exports": [
    "AICc",
    "AICC",
    "ajfit",
    "ajfit_flexsurvmix",
    "ajfit_fmsm",
    "augment",
    "basis",
    "bootci.fmsm",
    "coxsnell_flexsurvreg",
    "dbasis",
    "dfss",
    "dgenf",
    "dgenf.orig",
    "dgengamma",
    "dgengamma.orig",
    "dgompertz",
    "dllogis",
    "dsurvspline",
    "dsurvspline0",
    "dsurvspline1",
    "dsurvspline2",
    "dsurvspline3",
    "dsurvspline4",
    "dsurvspline5",
    "dsurvspline6",
    "dsurvspline7",
    "dweibullPH",
    "flexsurv.dists",
    "flexsurvmix",
    "flexsurvreg",
    "flexsurvrtrunc",
    "flexsurvspline",
    "fmixmsm",
    "fmsm",
    "fss",
    "get_basepars",
    "glance",
    "hexp",
    "Hexp",
    "hgamma",
    "Hgamma",
    "hgenf",
    "Hgenf",
    "hgenf.orig",
    "Hgenf.orig",
    "hgengamma",
    "Hgengamma",
    "hgengamma.orig",
    "Hgengamma.orig",
    "hgompertz",
    "Hgompertz",
    "hllogis",
    "Hllogis",
    "hlnorm",
    "Hlnorm",
    "hr_flexsurvreg",
    "hsurvspline",
    "Hsurvspline",
    "hsurvspline0",
    "Hsurvspline0",
    "hsurvspline1",
    "Hsurvspline1",
    "hsurvspline2",
    "Hsurvspline2",
    "hsurvspline3",
    "Hsurvspline3",
    "hsurvspline4",
    "Hsurvspline4",
    "hsurvspline5",
    "Hsurvspline5",
    "hsurvspline6",
    "Hsurvspline6",
    "hsurvspline7",
    "Hsurvspline7",
    "hweibull",
    "Hweibull",
    "hweibullPH",
    "HweibullPH",
    "mean_exp",
    "mean_flexsurvmix",
    "mean_gamma",
    "mean_genf",
    "mean_genf.orig",
    "mean_gengamma",
    "mean_gengamma.orig",
    "mean_gompertz",
    "mean_llogis",
    "mean_lnorm",
    "mean_survspline",
    "mean_survspline0",
    "mean_survspline1",
    "mean_survspline2",
    "mean_survspline3",
    "mean_survspline4",
    "mean_survspline5",
    "mean_survspline6",
    "mean_survspline7",
    "mean_weibull",
    "mean_weibullPH",
    "meanfinal_fmixmsm",
    "msfit.flexsurvreg",
    "normboot.flexsurvreg",
    "p_flexsurvmix",
    "pars.fmsm",
    "pdf_flexsurvmix",
    "pfinal_fmsm",
    "pgenf",
    "pgenf.orig",
    "pgengamma",
    "pgengamma.orig",
    "pgompertz",
    "pllogis",
    "pmatrix.fs",
    "pmatrix.simfs",
    "ppath_fmixmsm",
    "probs_flexsurvmix",
    "psurvspline",
    "psurvspline0",
    "psurvspline1",
    "psurvspline2",
    "psurvspline3",
    "psurvspline4",
    "psurvspline5",
    "psurvspline6",
    "psurvspline7",
    "pweibullPH",
    "qfinal_fmixmsm",
    "qgeneric",
    "qgenf",
    "qgenf.orig",
    "qgengamma",
    "qgengamma.orig",
    "qgompertz",
    "qllogis",
    "qsurvspline",
    "qsurvspline0",
    "qsurvspline1",
    "qsurvspline2",
    "qsurvspline3",
    "qsurvspline4",
    "qsurvspline5",
    "qsurvspline6",
    "qsurvspline7",
    "quantile_flexsurvmix",
    "qweibullPH",
    "rgenf",
    "rgenf.orig",
    "rgengamma",
    "rgengamma.orig",
    "rgompertz",
    "rllogis",
    "rmst_exp",
    "rmst_flexsurvmix",
    "rmst_gamma",
    "rmst_generic",
    "rmst_genf",
    "rmst_genf.orig",
    "rmst_gengamma",
    "rmst_gengamma.orig",
    "rmst_gompertz",
    "rmst_llogis",
    "rmst_lnorm",
    "rmst_survspline",
    "rmst_survspline0",
    "rmst_survspline1",
    "rmst_survspline2",
    "rmst_survspline3",
    "rmst_survspline4",
    "rmst_survspline5",
    "rmst_survspline6",
    "rmst_survspline7",
    "rmst_weibull",
    "rmst_weibullPH",
    "rsurvspline",
    "rsurvspline0",
    "rsurvspline1",
    "rsurvspline2",
    "rsurvspline3",
    "rsurvspline4",
    "rsurvspline5",
    "rsurvspline6",
    "rsurvspline7",
    "rweibullPH",
    "sim.fmsm",
    "simfinal_fmsm",
    "simfs_bytrans",
    "standsurv",
    "survrtrunc",
    "tidy",
    "totlos.fs",
    "totlos.simfs",
    "unroll.function"
  ],
  "_datasets": [
    {
      "name": "bc",
      "title": "Breast cancer survival data",
      "object": "bc",
      "class": [
        "data.frame"
      ],
      "fields": [
        "censrec",
        "rectime",
        "group",
        "recyrs"
      ],
      "rows": 686,
      "table": true,
      "tojson": true
    },
    {
      "name": "bosms3",
      "title": "Bronchiolitis obliterans syndrome after lung transplants",
      "object": "bosms3",
      "class": [
        "msdata",
        "data.frame"
      ],
      "fields": [
        "id",
        "from",
        "to",
        "Tstart",
        "Tstop",
        "years",
        "status",
        "trans"
      ],
      "rows": 511,
      "table": true,
      "tojson": true
    },
    {
      "name": "bosms4",
      "title": "Bronchiolitis obliterans syndrome after lung transplants",
      "object": "bosms4",
      "class": [
        "msdata",
        "data.frame"
      ],
      "fields": [
        "id",
        "from",
        "to",
        "Tstart",
        "Tstop",
        "years",
        "status",
        "trans"
      ],
      "rows": 677,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "flexsurv-package",
      "title": "flexsurv: Flexible parametric survival and multi-state models",
      "topics": [
        "flexsurv-package",
        "flexsurv"
      ]
    },
    {
      "page": "AIC.fmsm",
      "title": "Akaike's information criterion from a flexible parametric multistate model",
      "topics": [
        "AIC.fmsm"
      ]
    },
    {
      "page": "AICc",
      "title": "Second-order Akaike information criterion",
      "topics": [
        "AICC",
        "AICc"
      ]
    },
    {
      "page": "AICc.flexsurvreg",
      "title": "Second-order Akaike information criterion",
      "topics": [
        "AICC.flexsurvreg",
        "AICc.flexsurvreg"
      ]
    },
    {
      "page": "ajfit",
      "title": "Aalen-Johansen nonparametric estimates comparable to a fitted flexsurvmix model",
      "topics": [
        "ajfit"
      ]
    },
    {
      "page": "ajfit_flexsurvmix",
      "title": "Forms a tidy data frame for plotting the fit of parametric mixture multi-state models against nonparametric estimates",
      "topics": [
        "ajfit_flexsurvmix"
      ]
    },
    {
      "page": "ajfit_fmsm",
      "title": "Check the fit of Markov flexible parametric multi-state models against nonparametric estimates.",
      "topics": [
        "ajfit_fmsm"
      ]
    },
    {
      "page": "augment.flexsurvreg",
      "title": "Augment data with information from a flexsurv model object",
      "topics": [
        "augment.flexsurvreg"
      ]
    },
    {
      "page": "basis",
      "title": "Natural cubic spline basis",
      "topics": [
        "basis",
        "dbasis",
        "dfss",
        "fss"
      ]
    },
    {
      "page": "bc",
      "title": "Breast cancer survival data",
      "topics": [
        "bc"
      ]
    },
    {
      "page": "BIC.flexsurvreg",
      "title": "Bayesian Information Criterion (BIC) for comparison of flexsurvreg models",
      "topics": [
        "BIC.flexsurvreg"
      ]
    },
    {
      "page": "bootci.fmsm",
      "title": "Bootstrap confidence intervals for flexsurv output functions",
      "topics": [
        "bootci.fmsm"
      ]
    },
    {
      "page": "bos",
      "title": "Bronchiolitis obliterans syndrome after lung transplants",
      "topics": [
        "bos",
        "bosms3",
        "bosms4"
      ]
    },
    {
      "page": "coef.flexsurvreg",
      "title": "Extract model coefficients from fitted flexible survival models",
      "topics": [
        "coef.flexsurvreg"
      ]
    },
    {
      "page": "coxsnell_flexsurvreg",
      "title": "Cox-Snell residuals from a parametric survival model",
      "topics": [
        "coxsnell_flexsurvreg"
      ]
    },
    {
      "page": "flexsurvmix",
      "title": "Flexible parametric mixture models for times to competing events",
      "topics": [
        "flexsurvmix"
      ]
    },
    {
      "page": "flexsurvreg",
      "title": "Flexible parametric regression for time-to-event data",
      "topics": [
        "flexsurv.dists",
        "flexsurvreg"
      ]
    },
    {
      "page": "flexsurvrtrunc",
      "title": "Flexible parametric models for right-truncated, uncensored data defined by times of initial and final events.",
      "topics": [
        "flexsurvrtrunc"
      ]
    },
    {
      "page": "flexsurvspline",
      "title": "Flexible survival regression using the Royston/Parmar spline model.",
      "topics": [
        "flexsurvspline"
      ]
    },
    {
      "page": "fmixmsm",
      "title": "Constructor for a mixture multi-state model based on flexsurvmix",
      "topics": [
        "fmixmsm"
      ]
    },
    {
      "page": "fmsm",
      "title": "Construct a multi-state model from a set of parametric survival models",
      "topics": [
        "fmsm"
      ]
    },
    {
      "page": "GenF",
      "title": "Generalized F distribution",
      "topics": [
        "dgenf",
        "GenF",
        "Hgenf",
        "hgenf",
        "pgenf",
        "qgenf",
        "rgenf"
      ]
    },
    {
      "page": "GenF.orig",
      "title": "Generalized F distribution (original parameterisation)",
      "topics": [
        "dgenf.orig",
        "GenF.orig",
        "Hgenf.orig",
        "hgenf.orig",
        "pgenf.orig",
        "qgenf.orig",
        "rgenf.orig"
      ]
    },
    {
      "page": "GenGamma",
      "title": "Generalized gamma distribution",
      "topics": [
        "dgengamma",
        "GenGamma",
        "Hgengamma",
        "hgengamma",
        "pgengamma",
        "qgengamma",
        "rgengamma"
      ]
    },
    {
      "page": "GenGamma.orig",
      "title": "Generalized gamma distribution (original parameterisation)",
      "topics": [
        "dgengamma.orig",
        "GenGamma.orig",
        "Hgengamma.orig",
        "hgengamma.orig",
        "pgengamma.orig",
        "qgengamma.orig",
        "rgengamma.orig"
      ]
    },
    {
      "page": "get_basepars",
      "title": "Evaluate baseline time-to-event distribution parameters given covariate values in a flexsurvmix model",
      "topics": [
        "get_basepars"
      ]
    },
    {
      "page": "glance.flexsurvreg",
      "title": "Glance at a flexsurv model object",
      "topics": [
        "glance.flexsurvreg"
      ]
    },
    {
      "page": "Gompertz",
      "title": "The Gompertz distribution",
      "topics": [
        "dgompertz",
        "Gompertz",
        "Hgompertz",
        "hgompertz",
        "pgompertz",
        "qgompertz",
        "rgompertz"
      ]
    },
    {
      "page": "hazard",
      "title": "Hazard and cumulative hazard functions",
      "topics": [
        "hazard",
        "Hexp",
        "hexp",
        "Hgamma",
        "hgamma",
        "Hlnorm",
        "hlnorm",
        "Hweibull",
        "hweibull"
      ]
    },
    {
      "page": "hr_flexsurvreg",
      "title": "Hazard ratio as a function of time from a parametric survival model",
      "topics": [
        "hr_flexsurvreg"
      ]
    },
    {
      "page": "lines.flexsurvreg",
      "title": "Add fitted flexible survival curves to a plot",
      "topics": [
        "lines.flexsurvreg"
      ]
    },
    {
      "page": "Llogis",
      "title": "The log-logistic distribution",
      "topics": [
        "dllogis",
        "Hllogis",
        "hllogis",
        "Llogis",
        "pllogis",
        "qllogis",
        "rllogis"
      ]
    },
    {
      "page": "logLik.flexsurvreg",
      "title": "Log likelihood from a flexsurvreg model",
      "topics": [
        "logLik.flexsurvreg"
      ]
    },
    {
      "page": "means",
      "title": "Mean and restricted mean survival functions",
      "topics": [
        "means",
        "mean_exp",
        "mean_gamma",
        "mean_genf",
        "mean_genf.orig",
        "mean_gengamma",
        "mean_gengamma.orig",
        "mean_gompertz",
        "mean_llogis",
        "mean_lnorm",
        "mean_weibull",
        "mean_weibullPH",
        "rmst_exp",
        "rmst_gamma",
        "rmst_genf",
        "rmst_genf.orig",
        "rmst_gengamma",
        "rmst_gengamma.orig",
        "rmst_gompertz",
        "rmst_llogis",
        "rmst_lnorm",
        "rmst_weibull",
        "rmst_weibullPH"
      ]
    },
    {
      "page": "mean_flexsurvmix",
      "title": "Mean times to events from a flexsurvmix model",
      "topics": [
        "mean_flexsurvmix"
      ]
    },
    {
      "page": "meanfinal_fmixmsm",
      "title": "Mean time to final state in a mixture multi-state model",
      "topics": [
        "meanfinal_fmixmsm"
      ]
    },
    {
      "page": "model.frame.flexsurvmix",
      "title": "Model frame from a flexsurvmix object",
      "topics": [
        "model.frame.flexsurvmix"
      ]
    },
    {
      "page": "model.frame.flexsurvreg",
      "title": "Extract original data from 'flexsurvreg' objects.",
      "topics": [
        "model.frame.flexsurvreg",
        "model.matrix.flexsurvreg"
      ]
    },
    {
      "page": "msfit.flexsurvreg",
      "title": "Cumulative intensity function for parametric multi-state models",
      "topics": [
        "msfit.flexsurvreg"
      ]
    },
    {
      "page": "nobs.flexsurvreg",
      "title": "Number of observations contributing to a fitted flexible survival model",
      "topics": [
        "nobs.flexsurvreg"
      ]
    },
    {
      "page": "normboot.flexsurvreg",
      "title": "Simulate from the asymptotic normal distribution of parameter estimates.",
      "topics": [
        "normboot.flexsurvreg"
      ]
    },
    {
      "page": "p_flexsurvmix",
      "title": "Transition probabilities from a flexsurvmix model",
      "topics": [
        "p_flexsurvmix"
      ]
    },
    {
      "page": "pars.fmsm",
      "title": "Transition-specific parameters in a flexible parametric multi-state model",
      "topics": [
        "pars.fmsm"
      ]
    },
    {
      "page": "pdf_flexsurvmix",
      "title": "Fitted densities for times to events in a flexsurvmix model",
      "topics": [
        "pdf_flexsurvmix"
      ]
    },
    {
      "page": "pfinal_fmsm",
      "title": "Probabilities of final states in a flexible parametric competing risks model",
      "topics": [
        "pfinal_fmsm"
      ]
    },
    {
      "page": "plot.flexsurvreg",
      "title": "Plots of fitted flexible survival models",
      "topics": [
        "plot.flexsurvreg"
      ]
    },
    {
      "page": "plot.standsurv",
      "title": "Plot standardized metrics from a fitted flexsurv model",
      "topics": [
        "plot.standsurv"
      ]
    },
    {
      "page": "plot_survtrunc",
      "title": "Plot nonparametric estimates of survival from right-truncated data.",
      "topics": [
        "lines.survrtrunc",
        "plot.survrtrunc"
      ]
    },
    {
      "page": "pmatrix.fs",
      "title": "Transition probability matrix from a fully-parametric, time-inhomogeneous Markov multi-state model",
      "topics": [
        "pmatrix.fs"
      ]
    },
    {
      "page": "pmatrix.simfs",
      "title": "Transition probability matrix from a fully-parametric, semi-Markov multi-state model",
      "topics": [
        "pmatrix.simfs"
      ]
    },
    {
      "page": "ppath_fmixmsm",
      "title": "Probability of each pathway taken through a mixture multi-state model",
      "topics": [
        "ppath_fmixmsm"
      ]
    },
    {
      "page": "predict.flexsurvreg",
      "title": "Predictions from flexible survival models",
      "topics": [
        "predict.flexsurvreg"
      ]
    },
    {
      "page": "probs_flexsurvmix",
      "title": "Probabilities of competing events from a flexsurvmix model",
      "topics": [
        "probs_flexsurvmix"
      ]
    },
    {
      "page": "qfinal_fmixmsm",
      "title": "Quantiles of the distribution of the time until reaching a final state in a mixture multi-state model",
      "topics": [
        "qfinal_fmixmsm"
      ]
    },
    {
      "page": "qgeneric",
      "title": "Generic function to find quantiles of a distribution",
      "topics": [
        "qgeneric"
      ]
    },
    {
      "page": "quantile_flexsurvmix",
      "title": "Quantiles of time-to-event distributions in a flexsurvmix model",
      "topics": [
        "quantile_flexsurvmix"
      ]
    },
    {
      "page": "residuals.flexsurvreg",
      "title": "Calculate residuals for flexible survival models",
      "topics": [
        "residuals.flexsurvreg"
      ]
    },
    {
      "page": "rmst_flexsurvmix",
      "title": "Restricted mean times to events from a flexsurvmix model",
      "topics": [
        "rmst_flexsurvmix"
      ]
    },
    {
      "page": "rmst_generic",
      "title": "Generic function to find restricted mean survival time for some distribution",
      "topics": [
        "rmst_generic"
      ]
    },
    {
      "page": "sim.fmsm",
      "title": "Simulate paths through a fully parametric semi-Markov multi-state model",
      "topics": [
        "sim.fmsm"
      ]
    },
    {
      "page": "simfinal_fmsm",
      "title": "Simulate and summarise final outcomes from a flexible parametric multi-state model",
      "topics": [
        "simfinal_fmsm"
      ]
    },
    {
      "page": "simfs_bytrans",
      "title": "Reformat simulated multi-state data with one row per simulated transition",
      "topics": [
        "simfs_bytrans"
      ]
    },
    {
      "page": "simt_flexsurvmix",
      "title": "Simulate times to competing events from a mixture multi-state model",
      "topics": [
        "simt_flexsurvmix"
      ]
    },
    {
      "page": "simulate.flexsurvreg",
      "title": "Simulate censored time-to-event data from a fitted flexsurvreg model",
      "topics": [
        "simulate.flexsurvreg"
      ]
    },
    {
      "page": "standsurv",
      "title": "Marginal survival and hazards of fitted flexsurvreg models",
      "topics": [
        "standsurv"
      ]
    },
    {
      "page": "summary.flexsurvreg",
      "title": "Summaries of fitted flexible survival models",
      "topics": [
        "summary.flexsurvreg"
      ]
    },
    {
      "page": "summary.flexsurvrtrunc",
      "title": "Summarise quantities of interest from fitted flexsurvrtrunc models",
      "topics": [
        "summary.flexsurvrtrunc"
      ]
    },
    {
      "page": "survrtrunc",
      "title": "Nonparametric estimator of survival from right-truncated, uncensored data",
      "topics": [
        "survrtrunc"
      ]
    },
    {
      "page": "Survspline",
      "title": "Royston/Parmar spline survival distribution",
      "topics": [
        "dsurvspline",
        "Hsurvspline",
        "hsurvspline",
        "mean_survspline",
        "psurvspline",
        "qsurvspline",
        "rmst_survspline",
        "rsurvspline",
        "Survspline"
      ]
    },
    {
      "page": "Survsplinek",
      "title": "Royston/Parmar spline survival distribution functions with one argument per parameter",
      "topics": [
        "dsurvspline0",
        "dsurvspline1",
        "dsurvspline2",
        "dsurvspline3",
        "dsurvspline4",
        "dsurvspline5",
        "dsurvspline6",
        "dsurvspline7",
        "Hsurvspline0",
        "hsurvspline0",
        "Hsurvspline1",
        "hsurvspline1",
        "Hsurvspline2",
        "hsurvspline2",
        "Hsurvspline3",
        "hsurvspline3",
        "Hsurvspline4",
        "hsurvspline4",
        "Hsurvspline5",
        "hsurvspline5",
        "Hsurvspline6",
        "hsurvspline6",
        "Hsurvspline7",
        "hsurvspline7",
        "mean_survspline0",
        "mean_survspline1",
        "mean_survspline2",
        "mean_survspline3",
        "mean_survspline4",
        "mean_survspline5",
        "mean_survspline6",
        "mean_survspline7",
        "psurvspline0",
        "psurvspline1",
        "psurvspline2",
        "psurvspline3",
        "psurvspline4",
        "psurvspline5",
        "psurvspline6",
        "psurvspline7",
        "qsurvspline0",
        "qsurvspline1",
        "qsurvspline2",
        "qsurvspline3",
        "qsurvspline4",
        "qsurvspline5",
        "qsurvspline6",
        "qsurvspline7",
        "rmst_survspline0",
        "rmst_survspline1",
        "rmst_survspline2",
        "rmst_survspline3",
        "rmst_survspline4",
        "rmst_survspline5",
        "rmst_survspline6",
        "rmst_survspline7",
        "rsurvspline0",
        "rsurvspline1",
        "rsurvspline2",
        "rsurvspline3",
        "rsurvspline4",
        "rsurvspline5",
        "rsurvspline6",
        "rsurvspline7",
        "Survsplinek"
      ]
    },
    {
      "page": "tidy.flexsurvreg",
      "title": "Tidy a flexsurv model object",
      "topics": [
        "tidy.flexsurvreg"
      ]
    },
    {
      "page": "tidy.standsurv",
      "title": "Tidy a standsurv object.",
      "topics": [
        "tidy.standsurv"
      ]
    },
    {
      "page": "totlos.fs",
      "title": "Total length of stay in particular states for a fully-parametric, time-inhomogeneous Markov multi-state model",
      "topics": [
        "totlos.fs"
      ]
    },
    {
      "page": "totlos.simfs",
      "title": "Expected total length of stay in specific states, from a fully-parametric, semi-Markov multi-state model",
      "topics": [
        "totlos.simfs"
      ]
    },
    {
      "page": "unroll.function",
      "title": "Convert a function with matrix arguments to a function with vector arguments.",
      "topics": [
        "unroll.function"
      ]
    },
    {
      "page": "vcov.flexsurvreg",
      "title": "Variance-covariance matrix from a flexsurvreg model",
      "topics": [
        "vcov.flexsurvreg"
      ]
    },
    {
      "page": "WeibullPH",
      "title": "Weibull distribution in proportional hazards parameterisation",
      "topics": [
        "dweibullPH",
        "HweibullPH",
        "hweibullPH",
        "pweibullPH",
        "qweibullPH",
        "rweibullPH",
        "WeibullPH"
      ]
    }
  ],
  "_readme": "https://github.com/chjackson/flexsurv-dev/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "bbmle",
    "bdsmatrix",
    "cli",
    "cpp11",
    "data.table",
    "deSolve",
    "dplyr",
    "farver",
    "fastGHQuad",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lsoda",
    "magrittr",
    "MASS",
    "Matrix",
    "mgcv",
    "mstate",
    "muhaz",
    "mvtnorm",
    "nlme",
    "numDeriv",
    "pillar",
    "pkgconfig",
    "purrr",
    "quadprog",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "rstpm2",
    "S7",
    "scales",
    "statmod",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_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": "standsurv.Rmd",
      "filename": "standsurv.html",
      "title": "Calculating standardized survival measures in flexsurv",
      "author": "Michael Sweeting^[mikesweeting79@gmail.com]",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Background",
        "Standardized survival measures",
        "Calculating marginal expected survival and hazard",
        "Incorporation of background mortality into survival models",
        "standsurv",
        "A worked example: the pbc dataset",
        "A stratified Weibull model",
        "Using standsurv to calculate marginal survival",
        "Other metrics: marginal hazards and marginal RMST",
        "Calculating contrasts",
        "Confidence intervals and standard errors",
        "Adding age as a covariate",
        "Calculating expected survival and hazard in standsurv",
        "Incorporation of background mortality",
        "Conclusions",
        "References"
      ],
      "created": "2022-04-07 12:58:10",
      "modified": "2023-04-17 17:13:45",
      "commits": 4
    },
    {
      "source": "distributions.Rnw",
      "filename": "distributions.pdf",
      "title": "Distributions reference",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2020-11-27 17:49:47",
      "modified": "2025-12-13 15:13:44",
      "commits": 7
    },
    {
      "source": "flexsurv.Rnw",
      "filename": "flexsurv.pdf",
      "title": "flexsurv user guide",
      "engine": "knitr::knitr",
      "headings": [],
      "created": "2014-07-29 16:14:01",
      "modified": "2024-04-16 13:31:58",
      "commits": 51
    },
    {
      "source": "multistate.Rnw",
      "filename": "multistate.pdf",
      "title": "Multi-state modelling with flexsurv",
      "engine": "knitr::knitr",
      "headings": [],
      "created": "2020-09-06 10:25:22",
      "modified": "2023-01-31 14:51:03",
      "commits": 3
    },
    {
      "source": "flexsurv-examples.Rnw",
      "filename": "flexsurv-examples.pdf",
      "title": "Supplementary examples of using flexsurv",
      "engine": "utils::Sweave",
      "headings": [],
      "created": "2014-08-05 15:10:51",
      "modified": "2021-11-15 17:23:27",
      "commits": 14
    }
  ],
  "_score": 13.296811118693606,
  "_indexed": true,
  "_nocasepkg": "flexsurv",
  "_universes": [
    "chjackson"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.3.2",
      "date": "2026-05-19T09:24:21.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "a749e29249b8476be442606762e375619368a3946528611df0651de21ffa2bf8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.3.2",
      "date": "2026-05-19T09:24:21.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "224d449ae13fd203152417cb30f0e0d4c66d99744367da9fc044888291c29add",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.3.2",
      "date": "2026-05-19T09:24:20.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "7ac538c69da32473900644124c50d148298ef6a1818502631f53b69e672fd9bb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.3.2",
      "date": "2026-05-19T09:24:21.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "2ddde29e25b4c13962de45e1b04a2c45431fa7c4b12bd586e34a5237efb8afe8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.3.2",
      "date": "2026-05-19T09:24:21.000Z",
      "arch": "aarch64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "aa8814f4cb49fea76c60f3c4622c64115d74867017da09915b1d91e75a9e6573",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.3.2",
      "date": "2026-05-19T09:28:32.000Z",
      "arch": "x86_64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "852cb3501dc95f444c31f0f2a0c1665f46849bce39f47220699409d9001c0ad2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.3.2",
      "date": "2026-05-19T09:24:01.000Z",
      "arch": "aarch64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "fc6cdab66b6872e2d70b25178474b9c32bde0c17031adb753d91f9abdda7110e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.3.2",
      "date": "2026-05-19T09:25:51.000Z",
      "arch": "x86_64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "a0d4131761d6cdf0bf418ce87c84e6b3f990de63710664617049d4ab46433c98",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.3.2",
      "date": "2026-05-19T09:23:24.000Z",
      "arch": "x86_64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "13f97f5b8a9bdc33f34266b288ba3a46721e0f64740753b92b73dcfcd0486fb8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.3.2",
      "date": "2026-05-19T09:23:27.000Z",
      "arch": "x86_64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "d08f1d414461c2065e436b49c21bc1757a05241cb2b7c694defea696f08bf56e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.3.2",
      "date": "2026-05-19T09:23:06.000Z",
      "arch": "x86_64",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "dd2a4ab615e06d60135e0378de4918c71be435d0fd26c4b382cf99acbe1dd261",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.3.2",
      "date": "2026-06-02T14:43:58.000Z",
      "arch": "emscripten",
      "commit": "27fc79d7e7eaf009e08a843677be91cfff175eeb",
      "fileid": "9a8eb7e4bce4cbcaa1edd7f8871f33ae9ec37de12a997bcb86571da1dd31c421",
      "status": "success",
      "buildurl": "https://github.com/r-universe/chjackson/actions/runs/26087886959"
    }
  ]
}