{"id":14066752,"url":"https://github.com/tidymodels/censored","last_synced_at":"2025-04-12T16:38:09.887Z","repository":{"id":37008283,"uuid":"283946209","full_name":"tidymodels/censored","owner":"tidymodels","description":"Parsnip wrappers for survival models","archived":false,"fork":false,"pushed_at":"2025-02-14T21:00:35.000Z","size":11802,"stargazers_count":123,"open_issues_count":22,"forks_count":12,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-10T12:40:00.483Z","etag":null,"topics":["parsnip","tidymodels"],"latest_commit_sha":null,"homepage":"https://censored.tidymodels.org/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tidymodels.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-31T04:58:54.000Z","updated_at":"2025-03-31T10:03:32.000Z","dependencies_parsed_at":"2023-11-23T19:59:50.025Z","dependency_job_id":"6750309a-ef4b-49af-b2cd-01285adbfdb7","html_url":"https://github.com/tidymodels/censored","commit_stats":{"total_commits":499,"total_committers":9,"mean_commits":55.44444444444444,"dds":0.3066132264529058,"last_synced_commit":"32d69c2e66533d7953da4026e48c78d60789126e"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fcensored","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fcensored/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fcensored/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidymodels%2Fcensored/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidymodels","download_url":"https://codeload.github.com/tidymodels/censored/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248597712,"owners_count":21130928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["parsnip","tidymodels"],"created_at":"2024-08-13T07:05:14.655Z","updated_at":"2025-04-12T16:38:09.869Z","avatar_url":"https://github.com/tidymodels.png","language":"R","readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# censored \u003ca href='https://censored.tidymodels.org'\u003e\u003cimg src='man/figures/logo.png' align=\"right\" height=\"139\" alt=\"a pixelated version of the parsnip logo with a black censoring bar\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/tidymodels/censored/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tidymodels/censored/actions/workflows/R-CMD-check.yaml)\n[![Codecov test coverage](https://codecov.io/gh/tidymodels/censored/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/censored?branch=main)\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html) \n[![R-CMD-check-hard](https://github.com/tidymodels/censored/actions/workflows/R-CMD-check-hard.yaml/badge.svg)](https://github.com/tidymodels/censored/actions/workflows/R-CMD-check-hard.yaml)\n\u003c!-- badges: end --\u003e\n\n`censored` is a [parsnip](https://parsnip.tidymodels.org) extension package which provides engines for various models for censored regression and survival analysis.\n\n## Installation\n\nYou can install the released version of censored from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"censored\")\n```\n\nAnd the development version from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"pak\")\npak::pak(\"tidymodels/censored\")\n```\n\n## Available models, engines, and prediction types \n\ncensored provides engines for the models in the following table. For examples, please see [Fitting and Predicting with censored](https://censored.tidymodels.org/articles/articles/examples.html).\n\nThe time to event can be predicted with `type = \"time\"`, the \nsurvival probability with `type = \"survival\"`, the linear predictor with `type = \"linear_pred\"`, the quantiles of the event time distribution with `type = \"quantile\"`, and the hazard with `type = \"hazard\"`.\n\n```{r, echo=FALSE, message=FALSE}\nlibrary(censored)\nlibrary(dplyr)\nlibrary(purrr)\nlibrary(tidyr)\n\nyep \u003c- cli::symbol$tick\nnope \u003c- cli::symbol$cross\n\nmod_names \u003c- get_from_env(\"models\")\nmodel_info \u003c-\n  map_dfr(mod_names, ~ get_from_env(paste0(.x, \"_predict\")) %\u003e% mutate(model = .x))\n\nmodel_info %\u003e%\n  filter(mode == \"censored regression\") %\u003e%\n  select(model, engine, mode, type) %\u003e%\n  pivot_wider(\n    names_from = type,\n    values_from = mode,\n    values_fill = nope,\n    values_fn = function(x) yep\n  ) %\u003e%\n  knitr::kable()\n```\n\n## Contributing\n\nThis project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n\n- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on Posit Community](https://forum.posit.co/new-topic?category_id=15\u0026tags=tidymodels,question).\n\n- If you think you have encountered a bug, please [submit an issue](https://github.com/tidymodels/censored/issues).\n\n- Either way, learn how to create and share a [reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html) (a minimal, reproducible example), to clearly communicate about your code.\n\n- Check out further details on [contributing guidelines for tidymodels packages](https://www.tidymodels.org/contribute/) and [how to get help](https://www.tidymodels.org/help/).\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidymodels%2Fcensored","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidymodels%2Fcensored","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidymodels%2Fcensored/lists"}