{
  "_id": "6a223a63cd65a98ecbd43bec",
  "Package": "eventPred",
  "Title": "Event Prediction",
  "Version": "0.3.0",
  "Authors@R": "person(\"Kaifeng\", \"Lu\", , \"kaifenglu@gmail.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-6160-7119\"))",
  "Description": "Predicts enrollment and events at the design or analysis\nstage using specified enrollment and time-to-event models\nthrough simulations.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "URL": "https://kaifenglu.github.io/eventPred/,\nhttps://github.com/kaifenglu/eventPred",
  "BugReports": "https://github.com/kaifenglu/eventPred/issues",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev libssl-dev\nzlib1g-dev",
  "Repository": "https://kaifenglu.r-universe.dev",
  "Date/Publication": "2026-06-05 02:08:49 UTC",
  "RemoteUrl": "https://github.com/kaifenglu/eventpred",
  "RemoteRef": "HEAD",
  "RemoteSha": "740b20ef631d750dfa18a41b7bc5c63ea8879c36",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-05 02:49:50 UTC",
    "User": "root"
  },
  "Author": "Kaifeng Lu [aut, cre] (ORCID: <https://orcid.org/0000-0002-6160-7119>)",
  "Maintainer": "Kaifeng Lu <kaifenglu@gmail.com>",
  "MD5sum": "f82e8988831de3a51892f38f25fe375d",
  "_user": "kaifenglu",
  "_type": "src",
  "_file": "eventPred_0.3.0.tar.gz",
  "_fileid": "16e0ccbcdc36ce4da91d45524ef2b90547c479829c9d25a41c15ba22a201b3d8",
  "_filesize": 667674,
  "_sha256": "16e0ccbcdc36ce4da91d45524ef2b90547c479829c9d25a41c15ba22a201b3d8",
  "_created": "2026-06-05T02:49:50.000Z",
  "_published": "2026-06-05T02:54:27.790Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79654874575,
      "time": 235,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7427817308"
    },
    {
      "job": 79654874529,
      "time": 214,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427813454"
    },
    {
      "job": 79654874546,
      "time": 147,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7427800563"
    },
    {
      "job": 79654874564,
      "time": 129,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427796942"
    },
    {
      "job": 79654509685,
      "time": 247,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427774452"
    },
    {
      "job": 79654874538,
      "time": 146,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427800208"
    },
    {
      "job": 79654874567,
      "time": 181,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7427806791"
    },
    {
      "job": 79654874545,
      "time": 136,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7427798291"
    },
    {
      "job": 79654874557,
      "time": 215,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7427813760"
    }
  ],
  "_buildurl": "https://github.com/r-universe/kaifenglu/actions/runs/26992210907",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/kaifenglu/eventpred",
  "_commit": {
    "id": "740b20ef631d750dfa18a41b7bc5c63ea8879c36",
    "author": "Kaifeng Lu <kaifenglu@gmail.com>",
    "committer": "Kaifeng Lu <kaifenglu@gmail.com>",
    "message": "add nthreads\n",
    "time": 1780625329
  },
  "_maintainer": {
    "name": "Kaifeng Lu",
    "email": "kaifenglu@gmail.com",
    "login": "kaifenglu",
    "description": "",
    "uuid": 95114218,
    "orcid": "0000-0002-6160-7119"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "version": ">= 1.14.10",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "version": ">= 2.0.0",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.5.1",
      "role": "Imports"
    },
    {
      "package": "plotly",
      "version": ">= 4.10.1",
      "role": "Imports"
    },
    {
      "package": "survival",
      "version": ">= 2.41-3",
      "role": "Imports"
    },
    {
      "package": "splines",
      "version": ">= 3.5.0",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": ">= 1.2-14",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "version": ">= 1.1-3",
      "role": "Imports"
    },
    {
      "package": "rstpm2",
      "version": ">= 1.6.1",
      "role": "Imports"
    },
    {
      "package": "numDeriv",
      "version": ">= 2016.8-1.1",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 1.0.2",
      "role": "Imports"
    },
    {
      "package": "flexsurv",
      "version": ">= 2.2.2",
      "role": "Imports"
    },
    {
      "package": "erify",
      "version": ">= 0.4.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "version": ">= 3.5.0",
      "role": "Imports"
    },
    {
      "package": "shiny",
      "version": ">= 1.7.1",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.0.6",
      "role": "Imports"
    },
    {
      "package": "lrstat",
      "version": ">= 0.2.12",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "version": ">= 1.45",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "version": ">= 2.25",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "version": ">= 2.2.0",
      "role": "Suggests"
    }
  ],
  "_owner": "kaifenglu",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-24",
      "n": 6
    },
    {
      "week": "2026-23",
      "n": 18
    }
  ],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "kaifenglu",
      "count": 385,
      "uuid": 95114218
    }
  ],
  "_userbio": {
    "uuid": 95114218,
    "type": "user",
    "name": "kaifenglu"
  },
  "_downloads": {
    "count": 253,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/eventPred"
  },
  "_devurl": "https://github.com/kaifenglu/eventpred",
  "_pkgdown": "https://kaifenglu.github.io/eventPred/",
  "_searchresults": 20,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/eventPred.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kaifenglu/eventpred",
  "_realowner": "kaifenglu",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2023-03-10"
    },
    {
      "version": "0.1.0",
      "date": "2023-04-14"
    },
    {
      "version": "0.1.1",
      "date": "2023-04-19"
    },
    {
      "version": "0.1.2",
      "date": "2023-05-05"
    },
    {
      "version": "0.1.3",
      "date": "2023-05-16"
    },
    {
      "version": "0.1.4",
      "date": "2023-05-27"
    },
    {
      "version": "0.1.5",
      "date": "2023-06-05"
    },
    {
      "version": "0.2.0",
      "date": "2023-09-18"
    },
    {
      "version": "0.2.1",
      "date": "2023-10-19"
    },
    {
      "version": "0.2.2",
      "date": "2023-12-05"
    },
    {
      "version": "0.2.3",
      "date": "2023-12-17"
    },
    {
      "version": "0.2.4",
      "date": "2024-01-21"
    },
    {
      "version": "0.2.5",
      "date": "2024-02-28"
    },
    {
      "version": "0.2.6",
      "date": "2024-09-17"
    },
    {
      "version": "0.2.7",
      "date": "2025-03-13"
    },
    {
      "version": "0.2.8",
      "date": "2025-03-22"
    },
    {
      "version": "0.2.9",
      "date": "2025-06-10"
    }
  ],
  "_exports": [
    "fitDropout",
    "fitEnrollment",
    "fitEvent",
    "getPrediction",
    "pllik_pwexp",
    "pmodavg",
    "ppwexp",
    "predictEnrollment",
    "predictEvent",
    "pwexpreg",
    "qpwexp",
    "runShinyApp_eventPred",
    "summarizeObserved"
  ],
  "_datasets": [
    {
      "name": "finalData",
      "title": "Final enrollment and event data after achieving the target number of events",
      "object": "finalData",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "trialsdt",
        "usubjid",
        "randdt",
        "treatment",
        "treatment_description",
        "time",
        "event",
        "dropout",
        "cutoffdt"
      ],
      "rows": 300,
      "table": true,
      "tojson": true
    },
    {
      "name": "interimData1",
      "title": "Interim enrollment and event data before enrollment completion",
      "object": "interimData1",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "trialsdt",
        "usubjid",
        "randdt",
        "treatment",
        "treatment_description",
        "time",
        "event",
        "dropout",
        "cutoffdt"
      ],
      "rows": 224,
      "table": true,
      "tojson": true
    },
    {
      "name": "interimData2",
      "title": "Interim enrollment and event data after enrollment completion",
      "object": "interimData2",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "trialsdt",
        "usubjid",
        "randdt",
        "treatment",
        "treatment_description",
        "time",
        "event",
        "dropout",
        "cutoffdt"
      ],
      "rows": 300,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "eventPred-package",
      "title": "Event Prediction",
      "topics": [
        "eventPred-package"
      ]
    },
    {
      "page": "finalData",
      "title": "Final enrollment and event data after achieving the target number of events",
      "topics": [
        "finalData"
      ]
    },
    {
      "page": "fitDropout",
      "title": "Fit time-to-dropout model",
      "topics": [
        "fitDropout"
      ]
    },
    {
      "page": "fitEnrollment",
      "title": "Fit enrollment model",
      "topics": [
        "fitEnrollment"
      ]
    },
    {
      "page": "fitEvent",
      "title": "Fit time-to-event model",
      "topics": [
        "fitEvent"
      ]
    },
    {
      "page": "getPrediction",
      "title": "Enrollment and event prediction",
      "topics": [
        "getPrediction"
      ]
    },
    {
      "page": "interimData1",
      "title": "Interim enrollment and event data before enrollment completion",
      "topics": [
        "interimData1"
      ]
    },
    {
      "page": "interimData2",
      "title": "Interim enrollment and event data after enrollment completion",
      "topics": [
        "interimData2"
      ]
    },
    {
      "page": "predictEnrollment",
      "title": "Predict enrollment",
      "topics": [
        "predictEnrollment"
      ]
    },
    {
      "page": "predictEvent",
      "title": "Predict event",
      "topics": [
        "predictEvent"
      ]
    },
    {
      "page": "pwexpreg",
      "title": "Piecewise exponential regression",
      "topics": [
        "pwexpreg"
      ]
    },
    {
      "page": "runShinyApp_eventPred",
      "title": "Run Shiny app",
      "topics": [
        "runShinyApp_eventPred"
      ]
    },
    {
      "page": "summarizeObserved",
      "title": "Summarize observed data",
      "topics": [
        "summarizeObserved"
      ]
    }
  ],
  "_pkglogo": "https://github.com/kaifenglu/eventpred/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/kaifenglu/eventpred/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "assertthat",
    "base64enc",
    "bbmle",
    "bdsmatrix",
    "BH",
    "bslib",
    "cachem",
    "cli",
    "commonmark",
    "cpp11",
    "crosstalk",
    "curl",
    "data.table",
    "deSolve",
    "digest",
    "dplyr",
    "erify",
    "evaluate",
    "farver",
    "fastGHQuad",
    "fastmap",
    "flexsurv",
    "fontawesome",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "highr",
    "htmltools",
    "htmlwidgets",
    "httpuv",
    "httr",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "later",
    "lattice",
    "lazyeval",
    "lifecycle",
    "lpSolve",
    "lrstat",
    "lsoda",
    "magrittr",
    "MASS",
    "Matrix",
    "memoise",
    "mgcv",
    "mime",
    "mstate",
    "muhaz",
    "mvtnorm",
    "nlme",
    "numDeriv",
    "openssl",
    "otel",
    "pillar",
    "pkgconfig",
    "plotly",
    "promises",
    "purrr",
    "quadprog",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppParallel",
    "RcppThread",
    "rlang",
    "rmarkdown",
    "rstpm2",
    "S7",
    "sass",
    "scales",
    "shiny",
    "sourcetools",
    "statmod",
    "stringi",
    "stringr",
    "survival",
    "sys",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xtable",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "event_prediction_after_enrollment_completion.Rmd",
      "filename": "event_prediction_after_enrollment_completion.html",
      "title": "Event Prediction after Enrollment Completion",
      "author": "Kaifeng Lu",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2024-01-21 19:43:33",
      "modified": "2025-02-27 15:35:38",
      "commits": 2
    },
    {
      "source": "event_prediction_at_the_design_stage.Rmd",
      "filename": "event_prediction_at_the_design_stage.html",
      "title": "Event Prediction at the Design Stage",
      "author": "Kaifeng Lu",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Prior for enrollment",
        "Prior for event",
        "Prior for dropout",
        "Enrollment and event prediction at design stage"
      ],
      "created": "2024-01-21 19:43:33",
      "modified": "2024-01-21 19:43:33",
      "commits": 1
    },
    {
      "source": "event_prediction_before_enrollment_completion.Rmd",
      "filename": "event_prediction_before_enrollment_completion.html",
      "title": "Event Prediction before Enrollment Completion",
      "author": "Kaifeng Lu",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2024-01-21 19:43:33",
      "modified": "2025-02-27 15:35:38",
      "commits": 2
    },
    {
      "source": "event_prediction_incorporating_covariates.Rmd",
      "filename": "event_prediction_incorporating_covariates.html",
      "title": "Event Prediction Incorporating Covariates",
      "author": "Kaifeng Lu",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2024-01-21 19:43:33",
      "modified": "2025-02-27 15:35:38",
      "commits": 2
    },
    {
      "source": "event_prediction_incorporating_prior_information.Rmd",
      "filename": "event_prediction_incorporating_prior_information.html",
      "title": "Event Prediction Incorporating Prior Information",
      "author": "Kaifeng Lu",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2024-01-21 19:43:33",
      "modified": "2025-02-27 15:35:38",
      "commits": 2
    }
  ],
  "_score": 6.176091259055681,
  "_indexed": true,
  "_nocasepkg": "eventpred",
  "_universes": [
    "kaifenglu"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-06-05T02:52:42.000Z",
      "distro": "noble",
      "commit": "740b20ef631d750dfa18a41b7bc5c63ea8879c36",
      "fileid": "a8731b1ab47d2cdd85ac05e7481ae66f9723c7b578fb3a503725632ebced1ef3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kaifenglu/actions/runs/26992210907"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.0",
      "date": "2026-06-05T02:52:32.000Z",
      "distro": "noble",
      "commit": "740b20ef631d750dfa18a41b7bc5c63ea8879c36",
      "fileid": "c561693e1063f00b75d7e15c63e50acba397b49f597c3ff58e92927f4c519f2d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kaifenglu/actions/runs/26992210907"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-06-05T02:51:48.000Z",
      "commit": "740b20ef631d750dfa18a41b7bc5c63ea8879c36",
      "fileid": "80693baad45c1d31fd6ad6daf5bd7f49ac03f2892a12505886317cfee1a15e7d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kaifenglu/actions/runs/26992210907"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.0",
      "date": "2026-06-05T02:51:26.000Z",
      "commit": "740b20ef631d750dfa18a41b7bc5c63ea8879c36",
      "fileid": "95e9ce0b4ae87deca7e5116b0fdcb9d80f38f693d2ab35d58758270e0570b9b4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kaifenglu/actions/runs/26992210907"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.0",
      "date": "2026-06-05T02:52:39.000Z",
      "commit": "740b20ef631d750dfa18a41b7bc5c63ea8879c36",
      "fileid": "8211a813fe1f020044d4864e6108a6e7d7cc6f672825f5fc6225d82e14925af9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kaifenglu/actions/runs/26992210907"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-05T02:51:45.000Z",
      "commit": "740b20ef631d750dfa18a41b7bc5c63ea8879c36",
      "fileid": "6fb5bf5b50eed7354ffd72d8f0c47c1f804fb888855467620a32fd170a4b6286",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kaifenglu/actions/runs/26992210907"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-05T02:51:15.000Z",
      "commit": "740b20ef631d750dfa18a41b7bc5c63ea8879c36",
      "fileid": "5f50e527b213da63dba66237562e763b076fd32c05dcefc4be7b59759f4d5350",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kaifenglu/actions/runs/26992210907"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.0",
      "date": "2026-06-05T02:52:04.000Z",
      "commit": "740b20ef631d750dfa18a41b7bc5c63ea8879c36",
      "fileid": "f5985cc5e207765aa11171a9342772a8c63989c63fdc498151c5e0282138e226",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kaifenglu/actions/runs/26992210907"
    }
  ]
}