{"id":24999129,"url":"https://github.com/shixiangwang/ezcox","last_synced_at":"2025-04-12T08:02:25.795Z","repository":{"id":56934453,"uuid":"200824500","full_name":"ShixiangWang/ezcox","owner":"ShixiangWang","description":"Easily Process a Batch of Cox Models","archived":false,"fork":false,"pushed_at":"2024-01-05T01:47:41.000Z","size":7448,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-09T08:07:35.131Z","etag":null,"topics":["batch-processing","cox-model","r-package"],"latest_commit_sha":null,"homepage":"https://shixiangwang.github.io/ezcox/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShixiangWang.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-08-06T09:55:11.000Z","updated_at":"2024-02-01T09:23:00.000Z","dependencies_parsed_at":"2022-08-21T05:20:23.411Z","dependency_job_id":"66a7cf1f-0b8c-444a-83c0-3a4975b46f34","html_url":"https://github.com/ShixiangWang/ezcox","commit_stats":{"total_commits":75,"total_committers":2,"mean_commits":37.5,"dds":0.1466666666666666,"last_synced_commit":"8501b3ce1ee8c986a0f712ea3ec15c84388193ba"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShixiangWang%2Fezcox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShixiangWang%2Fezcox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShixiangWang%2Fezcox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShixiangWang%2Fezcox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShixiangWang","download_url":"https://codeload.github.com/ShixiangWang/ezcox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237178358,"owners_count":19267520,"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":["batch-processing","cox-model","r-package"],"created_at":"2025-02-04T18:53:36.782Z","updated_at":"2025-02-04T18:53:37.485Z","avatar_url":"https://github.com/ShixiangWang.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"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# ezcox: Easily Process a Batch of Cox Models\n\n\u003c!-- badges: start --\u003e\n[![CRAN status](https://www.r-pkg.org/badges/version/ezcox)](https://CRAN.R-project.org/package=ezcox)\n[![](https://cranlogs.r-pkg.org/badges/grand-total/ezcox?color=blue)](https://cran.r-project.org/package=ezcox)\n[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FShixiangWang%2Fezcox\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=fandom.svg\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=false)](https://hits.seeyoufarm.com)\n![R-CMD-check](https://github.com/ShixiangWang/ezcox/workflows/R-CMD-check/badge.svg)\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n\u003c!-- badges: end --\u003e\n\nThe goal of ezcox is to operate a batch of univariate or multivariate Cox models and return tidy result.\n\n## :arrow_double_down: Installation\n\nYou can install the released version of ezcox from [CRAN](https://CRAN.R-project.org) with:\n\n```r\ninstall.packages(\"ezcox\")\n```\n\nAnd the development version from [GitHub](https://github.com/) with:\n\n```r\n# install.packages(\"remotes\")\nremotes::install_github(\"ShixiangWang/ezcox\")\n```\n\nIt is possible to install **ezcox** from Conda `conda-forge` channel:\n\n```r\nconda install r-ezcox --channel conda-forge\n```\n\nVisualization feature of **ezcox** needs the recent version of **forestmodel**, please run the following commands:\n\n```r\nremotes::install_github(\"ShixiangWang/forestmodel\")\n```\n\n## :beginner: Example\n\nThis is a basic example which shows you how to get result from a batch of cox models.\n\n```{r example}\nlibrary(ezcox)\nlibrary(survival)\n\n# Build unvariable models\nezcox(lung, covariates = c(\"age\", \"sex\", \"ph.ecog\"))\n\n# Build multi-variable models\n# Control variable 'age'\nezcox(lung, covariates = c(\"sex\", \"ph.ecog\"), controls = \"age\")\n```\n\n```{r}\nlung$ph.ecog = factor(lung$ph.ecog)\nzz = ezcox(lung, covariates = c(\"sex\", \"ph.ecog\"), controls = \"age\", return_models=TRUE)\nmds = get_models(zz)\nstr(mds, max.level = 1)\n\nshow_models(mds)\n```\n\n\n## :star2: Vignettes\n\n- [ezcox: Easily Process a Batch of Cox Models](https://CRAN.R-project.org/package=ezcox/vignettes/ezcox.html)\n- [ezcox: Easily Show Cox Forestplot in One Command](https://CRAN.R-project.org/package=ezcox/vignettes/ezforest.html)\n- [ezcox: Easy Group Cox Analysis and Visualization](https://CRAN.R-project.org/package=ezcox/vignettes/ezgroup.html)\n- [ezcox: an R Package for Cox Model Batch Processing and Visualization - An Use Case](https://shixiangwang.github.io/ezcox-adv-usage/)\n\n## :page_with_curl: Citation\n\nIf you are using it in academic research,\nplease cite the preprint [arXiv:2110.14232](https://arxiv.org/abs/2110.14232) along with URL of this repo.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshixiangwang%2Fezcox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshixiangwang%2Fezcox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshixiangwang%2Fezcox/lists"}