{"id":24132863,"url":"https://github.com/rrrlw/dragonking","last_synced_at":"2025-06-25T03:03:30.072Z","repository":{"id":56937232,"uuid":"137609234","full_name":"rrrlw/dragonking","owner":"rrrlw","description":"Software implementing published dragon king (DK) related statistical tools developed by the Erdi research group at the Center for Complex System Studies (CCSS) at Kalamazoo College.","archived":false,"fork":false,"pushed_at":"2018-12-08T17:29:31.000Z","size":21,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T18:48:17.833Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rrrlw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-16T20:43:20.000Z","updated_at":"2024-10-01T17:31:21.000Z","dependencies_parsed_at":"2022-08-21T01:10:15.517Z","dependency_job_id":null,"html_url":"https://github.com/rrrlw/dragonking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rrrlw/dragonking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrrlw%2Fdragonking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrrlw%2Fdragonking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrrlw%2Fdragonking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrrlw%2Fdragonking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rrrlw","download_url":"https://codeload.github.com/rrrlw/dragonking/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rrrlw%2Fdragonking/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259998015,"owners_count":22943728,"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":[],"created_at":"2025-01-11T22:38:43.808Z","updated_at":"2025-06-25T03:03:29.963Z","avatar_url":"https://github.com/rrrlw.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dragonking: An R package implementing statistical tools for identification of dragon kings\n\n[![Travis-CI Build Status](https://travis-ci.org/rrrlw/dragonking.svg?branch=master)](https://travis-ci.org/rrrlw/dragonking)\n[![](http://www.r-pkg.org/badges/version/dragonking)](https://CRAN.R-project.org/package=dragonking)\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![CRAN Downloads](http://cranlogs.r-pkg.org/badges/grand-total/dragonking)](https://CRAN.R-project.org/package=dragonking)\n\n## Purpose\n\nThe dragonking R package implements published statistical tests and test statistics for identification of dragon kings.\n\n## Installation\n\nTo install the dragonking R package, run the following code in R:\n\n```r\ndevtools::install_github(\"rrrlw/dragonking\")\n```\n\nNote that you need the devtools package to install dragonking from GitHub (at least until it is accepted into CRAN).\nTo install devtools and dragonking, run the following code in R:\n\n```r\n# install and load devtools\ninstall.packages(\"devtools\")\nlibrary(\"devtools\")\n\n# install dragonking\ninstall_github(\"rrrlw/dragonking\")\n```\n\n## Example use\n\nThe following code demonstrates the use of dragonking with a mock dataset.\nFor examples of more detailed and varied use, please see the documentation and available vignettes.\n\n```r\n# load dragonking package\nlibrary(\"dragonking\")\n\n# create mock dataset with no dragon kings (DKs)\nset.none \u003c- rexp(100)\n\n# create mock dataset with 5 DKs\nset.dk \u003c- c(rexp(95),\n            15.1, 14.9, 15.0, 14.95, 15.09) # DKs\n\n# run DK test on dataset without DKs (we are looking for 2 DKs)\nresults.none \u003c- dk_test(set.none, r = 2)\nprint(results.none[\"Test Statistic\"]) # retrieve test stat\nprint(results.none[\"p-value\"])        # retrieve p-value\n\n# run DK test on dataset with DKs (we are looking for 3 DKs)\ndk_test(set.dk, r = 3)                # print out test stat and p-value\n```\n\nPlease report any bugs, comments, suggestions, etc. regarding dragonking on the [GitHub issues page](https://github.com/rrrlw/dragonking/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrrlw%2Fdragonking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frrrlw%2Fdragonking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frrrlw%2Fdragonking/lists"}