{
  "_id": "6a1ee051b401979e73410790",
  "Package": "spect",
  "Version": "1.0",
  "Date": "2025-04-06",
  "Title": "Survival Prediction Ensemble Classification Tool",
  "Authors@R": "c(person(\"Stephen\", \"Abrams\", role = c(\"aut\", \"cre\"), email = \"stephen.abrams@gmail.com\"))",
  "Author": "Stephen Abrams [aut, cre]",
  "Maintainer": "Stephen Abrams <stephen.abrams@gmail.com>",
  "Description": "A tool for survival analysis using a discrete time\napproach with ensemble binary classification. 'spect' provides\na simple interface consistent with commonly used R data\nanalysis packages, such as 'caret', a variety of parameter\noptions to help facilitate search automation, a high degree of\ntransparency to the end-user - all intermediate data sets and\nparameters are made available for further analysis and useful,\nout-of-the-box visualizations of model performance. Methods for\ntransforming survival data into discrete-time are adapted from\nthe 'autosurv' package by Suresh et al., (2022)\n<doi:10.1186/s12874-022-01679-6>.",
  "License": "GPL-3",
  "URL": "https://github.com/dawdawdo/spect",
  "BugReports": "https://github.com/dawdawdo/spect/issues",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Config/pak/sysreqs": "cmake make libicu-dev libjpeg-dev libpng-dev\nlibuv1-dev libxml2-dev libssl-dev",
  "Repository": "https://dawdawdo.r-universe.dev",
  "Date/Publication": "2025-04-13 01:29:59 UTC",
  "RemoteUrl": "https://github.com/dawdawdo/spect",
  "RemoteRef": "HEAD",
  "RemoteSha": "790e2016100f7b0dcb5818489048ad0038c77331",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-20 07:23:46 UTC",
    "User": "root"
  },
  "MD5sum": "7900db4e08b4202b3278ebbe044f61fa",
  "_user": "dawdawdo",
  "_type": "src",
  "_file": "spect_1.0.tar.gz",
  "_fileid": "d9c05aca7a3f397e52084c5c757dd78eca70ac3fbb3d7fcfaa61c1eaf3728408",
  "_filesize": 1238013,
  "_sha256": "d9c05aca7a3f397e52084c5c757dd78eca70ac3fbb3d7fcfaa61c1eaf3728408",
  "_created": "2026-05-20T07:23:46.000Z",
  "_published": "2026-06-02T13:53:21.266Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79086738274,
      "time": 207,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7103765223"
    },
    {
      "job": 79086739068,
      "time": 226,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7103771034"
    },
    {
      "job": 79086738541,
      "time": 212,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7103759604"
    },
    {
      "job": 79086738316,
      "time": 258,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7103769822"
    },
    {
      "job": 79086738171,
      "time": 277,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7103700554"
    },
    {
      "job": 79086737177,
      "time": 163,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7359666462"
    },
    {
      "job": 79086738592,
      "time": 180,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7103756776"
    },
    {
      "job": 79086739564,
      "time": 150,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7103747841"
    },
    {
      "job": 79086738422,
      "time": 178,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7103755749"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dawdawdo/actions/runs/26147628338",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/dawdawdo/spect",
  "_commit": {
    "id": "790e2016100f7b0dcb5818489048ad0038c77331",
    "author": "Stephen Abrams <stephen.abrams@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #7 from dawdawdo/master\n\nAltered tests, vignettes, and DESCRIPTION to align with CRAN standards.",
    "time": 1744507799
  },
  "_maintainer": {
    "name": "Stephen Abrams",
    "email": "stephen.abrams@gmail.com",
    "login": "dawdawdo",
    "description": "",
    "uuid": 16373453
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0",
      "role": "Depends"
    },
    {
      "package": "futile.logger",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Depends"
    },
    {
      "package": "doParallel",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "survminer",
      "role": "Imports"
    },
    {
      "package": "riskRegression",
      "role": "Imports"
    },
    {
      "package": "caret",
      "role": "Imports"
    },
    {
      "package": "caretEnsemble",
      "role": "Imports"
    },
    {
      "package": "survival",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "randomForest",
      "role": "Suggests"
    },
    {
      "package": "kernlab",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "dawdawdo",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "dawdawdo",
      "count": 17,
      "uuid": 16373453
    }
  ],
  "_userbio": {
    "uuid": 16373453,
    "type": "user",
    "name": "Stephen Abrams"
  },
  "_downloads": {
    "count": 184,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/spect"
  },
  "_devurl": "https://github.com/dawdawdo/spect",
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "extra/spect.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/dawdawdo/spect",
  "_realowner": "dawdawdo",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0",
      "date": "2025-04-08"
    }
  ],
  "_exports": [
    "create_person_period_data",
    "create_synthetic_data",
    "create_training_data",
    "evaluate_model",
    "generate_bounds",
    "plot_km",
    "plot_survival_curve",
    "plot_synthetic_data",
    "spect_predict",
    "spect_train"
  ],
  "_help": [
    {
      "page": "create_person_period_data",
      "title": "Generates person-period data for any data set, given the bounds defined by the training set.",
      "topics": [
        "create_person_period_data"
      ]
    },
    {
      "page": "create_synthetic_data",
      "title": "Generates a survival data set for synthetic streaming service subscription data.  The survival event in this case is a cancellation of the subscription. It is given as a function of household income and average number of hours watched in the prior month. Users can adjust the level of censoring and variance in the data with the supplied parameters or simply call with no parameters for a default distribution of data.",
      "topics": [
        "create_synthetic_data"
      ]
    },
    {
      "page": "create_training_data",
      "title": "Generates modeling data from a person-period data set.",
      "topics": [
        "create_training_data"
      ]
    },
    {
      "page": "evaluate_model",
      "title": "Generates evaluation metrics, include time-dependent TPR and FPR rates as well as AUC",
      "topics": [
        "evaluate_model"
      ]
    },
    {
      "page": "generate_bounds",
      "title": "Generates the intervals based on the survival times in the supplied data set using the quantile function.",
      "topics": [
        "generate_bounds"
      ]
    },
    {
      "page": "plot_KM",
      "title": "Plots a series of population Kaplan-Meier curves for different thresholds for both the test predictions and the ground truth",
      "topics": [
        "plot_km"
      ]
    },
    {
      "page": "plot_survival_curve",
      "title": "Plots a sample of individual survival curves from the test data set.",
      "topics": [
        "plot_survival_curve"
      ]
    },
    {
      "page": "plot_synthetic_data",
      "title": "Simple visualization of synthetic subscription data.",
      "topics": [
        "plot_synthetic_data"
      ]
    },
    {
      "page": "spect_predict",
      "title": "Generates predictions for each individual at each interval defined by the `train_result` parameter. The interval-level predictions can be combined to generate surivival curves for an individual.",
      "topics": [
        "spect_predict"
      ]
    },
    {
      "page": "spect_train",
      "title": "Generates a trained caret model using the given primary binary classification. Optionally generates a stacked ensemble model if a list of base learners is supplied.",
      "topics": [
        "spect_train"
      ]
    }
  ],
  "_readme": "https://github.com/dawdawdo/spect/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "base64enc",
    "boot",
    "broom",
    "bslib",
    "cachem",
    "car",
    "carData",
    "caret",
    "caretEnsemble",
    "checkmate",
    "class",
    "cli",
    "clock",
    "cluster",
    "cmprsk",
    "codetools",
    "colorspace",
    "commonmark",
    "corrplot",
    "cowplot",
    "cpp11",
    "curl",
    "data.table",
    "Deriv",
    "diagram",
    "digest",
    "doBy",
    "doParallel",
    "dplyr",
    "e1071",
    "evaluate",
    "exactRankTests",
    "farver",
    "fastmap",
    "fontawesome",
    "foreach",
    "forecast",
    "foreign",
    "formatR",
    "Formula",
    "fracdiff",
    "fs",
    "futile.logger",
    "futile.options",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "ggpubr",
    "ggrepel",
    "ggsci",
    "ggsignif",
    "ggtext",
    "glmnet",
    "globals",
    "glue",
    "gower",
    "gridExtra",
    "gridtext",
    "gtable",
    "hardhat",
    "highr",
    "Hmisc",
    "htmlTable",
    "htmltools",
    "htmlwidgets",
    "ipred",
    "isoband",
    "iterators",
    "jpeg",
    "jquerylib",
    "jsonlite",
    "KernSmooth",
    "knitr",
    "labeling",
    "lambda.r",
    "lattice",
    "lava",
    "lifecycle",
    "listenv",
    "litedown",
    "lme4",
    "lmtest",
    "lubridate",
    "magrittr",
    "markdown",
    "MASS",
    "Matrix",
    "MatrixModels",
    "maxstat",
    "memoise",
    "mets",
    "mgcv",
    "microbenchmark",
    "mime",
    "minqa",
    "ModelMetrics",
    "modelr",
    "multcomp",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "parallelly",
    "patchwork",
    "pbapply",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "plotrix",
    "plyr",
    "png",
    "polspline",
    "polynom",
    "pROC",
    "prodlim",
    "progressr",
    "proxy",
    "Publish",
    "purrr",
    "quantreg",
    "R6",
    "ranger",
    "rappdirs",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "recipes",
    "reformulas",
    "reshape2",
    "riskRegression",
    "rlang",
    "rmarkdown",
    "rms",
    "rpart",
    "rstatix",
    "rstudioapi",
    "S7",
    "sandwich",
    "sass",
    "scales",
    "shape",
    "SparseM",
    "sparsevctrs",
    "SQUAREM",
    "stringi",
    "stringr",
    "survival",
    "survminer",
    "TH.data",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "timereg",
    "tinytex",
    "tzdb",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "xml2",
    "yaml",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "create_synthetic_data.Rmd",
      "filename": "create_synthetic_data.html",
      "title": "create_synthetic_data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Creating synthetic data",
        "Modifying the distribution"
      ],
      "created": "2025-02-06 02:43:50",
      "modified": "2025-02-06 02:43:50",
      "commits": 1
    },
    {
      "source": "modeling_with_binary_classifiers.Rmd",
      "filename": "modeling_with_binary_classifiers.html",
      "title": "modeling_with_binary_classifiers",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Modeling time-to-event data"
      ],
      "created": "2025-02-06 02:43:50",
      "modified": "2025-04-13 01:29:59",
      "commits": 3
    },
    {
      "source": "training_synthetic_data.Rmd",
      "filename": "training_synthetic_data.html",
      "title": "training_synthetic_data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Generating unit test data"
      ],
      "created": "2025-02-06 02:43:50",
      "modified": "2025-04-13 01:29:59",
      "commits": 2
    }
  ],
  "_score": 4.176091259055681,
  "_indexed": true,
  "_nocasepkg": "spect",
  "_universes": [
    "dawdawdo"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-20T07:26:25.000Z",
      "distro": "noble",
      "commit": "790e2016100f7b0dcb5818489048ad0038c77331",
      "fileid": "ef239242dfadcca179a1751680f0aa2c6c93985a5837be7a1a99287c094cdf54",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dawdawdo/actions/runs/26147628338"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0",
      "date": "2026-05-20T07:26:41.000Z",
      "distro": "noble",
      "commit": "790e2016100f7b0dcb5818489048ad0038c77331",
      "fileid": "2f7e46cb7adbe2d7909f25e51deff6088f256a00ad9039ec952be0f9d6aa75e8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dawdawdo/actions/runs/26147628338"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0",
      "date": "2026-05-20T07:26:22.000Z",
      "commit": "790e2016100f7b0dcb5818489048ad0038c77331",
      "fileid": "ecba1a83a285fc726f0eb24244d22e3472c29bd6163c3d4d5590e83fceb8d36b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dawdawdo/actions/runs/26147628338"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0",
      "date": "2026-05-20T07:26:34.000Z",
      "commit": "790e2016100f7b0dcb5818489048ad0038c77331",
      "fileid": "1d4be4af71fd2bbd84d8a0d7fdb6b64ab20b137de6275139fa6fe38d2e77c033",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dawdawdo/actions/runs/26147628338"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-20T07:25:42.000Z",
      "commit": "790e2016100f7b0dcb5818489048ad0038c77331",
      "fileid": "e9036899451e5dc4412fd7c1bc6ea14dcf31f46031d246516600cfbc7d25c688",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dawdawdo/actions/runs/26147628338"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-20T07:25:17.000Z",
      "commit": "790e2016100f7b0dcb5818489048ad0038c77331",
      "fileid": "8cf2b33b8e856df256611ab743a725b1ed943fabffa2588d7bf9d688ff0d0b6b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dawdawdo/actions/runs/26147628338"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0",
      "date": "2026-05-20T07:25:32.000Z",
      "commit": "790e2016100f7b0dcb5818489048ad0038c77331",
      "fileid": "87b14fdbc7c3efbb188a300200390fe2feb978b90704d4802b423c806528eec0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dawdawdo/actions/runs/26147628338"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0",
      "date": "2026-06-02T13:52:46.000Z",
      "commit": "790e2016100f7b0dcb5818489048ad0038c77331",
      "fileid": "61d56513a43516cb551f262da36947f94d90395133b1530919257c810470758d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dawdawdo/actions/runs/26147628338"
    }
  ]
}