{"id":13665882,"url":"https://github.com/DeclareDesign/DesignLibrary","last_synced_at":"2025-04-26T08:33:38.270Z","repository":{"id":47159304,"uuid":"119712372","full_name":"DeclareDesign/DesignLibrary","owner":"DeclareDesign","description":"Library of Research Designs","archived":false,"fork":false,"pushed_at":"2023-08-08T19:32:54.000Z","size":26454,"stargazers_count":29,"open_issues_count":26,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-03-20T06:01:05.840Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://declaredesign.org/library/","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/DeclareDesign.png","metadata":{"files":{"readme":"README.Rmd","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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-31T16:23:24.000Z","updated_at":"2022-08-28T18:15:36.000Z","dependencies_parsed_at":"2024-01-19T14:22:46.558Z","dependency_job_id":"78bd394b-0468-4f49-97e0-2ac0630004f0","html_url":"https://github.com/DeclareDesign/DesignLibrary","commit_stats":{"total_commits":976,"total_committers":12,"mean_commits":81.33333333333333,"dds":0.4713114754098361,"last_synced_commit":"b3676fba248e83d9192a4874dbf3ff5dbb07ba87"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeclareDesign%2FDesignLibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeclareDesign%2FDesignLibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeclareDesign%2FDesignLibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeclareDesign%2FDesignLibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeclareDesign","download_url":"https://codeload.github.com/DeclareDesign/DesignLibrary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250961212,"owners_count":21514591,"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":"2024-08-02T06:00:52.900Z","updated_at":"2025-04-26T08:33:33.259Z","avatar_url":"https://github.com/DeclareDesign.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput:\n  github_document\ntitle: \"DesignLibrary: A Library of Common Research Designs\"\nalways_allow_html: true\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n[![Coverage Status](https://coveralls.io/repos/github/DeclareDesign/DesignLibrary/badge.svg?branch=master)](https://coveralls.io/github/DeclareDesign/DesignLibrary?branch=master)\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/DesignLibrary)](https://cran.r-project.org/package=DesignLibrary)\n[![minimal R version](https://img.shields.io/badge/R%3E%3D-3.4.0-6666ff.svg)](https://cran.r-project.org/)\n[![packageversion](https://img.shields.io/badge/Package%20version-0.1.5.9999-orange.svg?style=flat-square)](commits/master)\n\n**DesignLibrary** provides simple interface to build designs using the package **DeclareDesign**. In one line of code users can specify the parameters of individual designs and diagnose their properties. The designers can also be used to compare performance of a given design across a range of combinations of parameters, such as effect size, sample size, assignment probabilities and more.\n\n---\n\n## Designs\n\n```{r, echo=FALSE, message=FALSE}\nlibrary(fontawesome)\nlibrary(knitr)\nlibrary(tidyverse)\nlibrary(kableExtra)\n\nadd_link \u003c- function(url, fa_string, tooltip) {\n  paste0(\n    \"\u003ca data-toggle = 'tooltip' title = '\",\n    tooltip,\n    \"' href=\\\"\",\n    url,\n    \"\\\"\u003e\",\n    as.character(fa(fa_string, height = \"15px\", fill = \"#2860F6\")),\n    \"\u003c/a\u003e\"\n  )\n}\n\noverview \u003c- read_csv(\"inst/extdata/overview.csv\")\n\noverview \u003c-\n  overview %\u003e%\n  mutate(Vignette = add_link(url = paste0(\"https://declaredesign.org/r/designlibrary/articles/\", vignette, \".html\"), \n                                  fa_string = \"fab fa-readme\", \n                                  \"Read description of design\"),\n         Designer = add_link(url = paste0(\"https://declaredesign.org/r/designlibrary/reference/\", designer, \".html\"), \n                                  fa_string = \"fas fa-pencil-alt\", \n                                  \"Open designer documentation\"),\n         `Design Inspector` = add_link(url = paste0(\"https://eos.wzb.eu/ipi/DDinspector/?import_library=\", design), \n                                       fa_string = \"fas fa-info-circle\", \n                                       \"Open in DeclareDesign Inspector\"),\n         design_title = str_replace_all(design, \"_\", \" \"),\n         design_title = str_to_title(design_title),\n         Design = str_replace(design_title, \"Iv\", \"IV\"))\n\n\noverview %\u003e%\n  select(Design, Vignette, Designer, `Design Inspector`) %\u003e%\n  kable(escape = F, align = c(\"l\", \"c\", \"c\", \"c\")) %\u003e%\n  kable_styling()\n```\n\n\n## Installing the design library\n\nTo install the latest stable release of **DesignLibrary**, please ensure that you are running version 3.4 or later of R and run the following code:\n\n```{r, eval=F}\ninstall.packages(\"DesignLibrary\")\n```\n\nIf you would like to use the latest development release of **DesignLibrary**, please ensure that you are running version 3.4 or later of R and run the following code:\n\n```{r, eval=F}\ndevtools::install_github(\"DeclareDesign/DesignLibrary\", keep_source = TRUE)\n```\n\n## Contributing designs and designers\n\nWe welcome contributions to the library! \n\n- You can [submit static designs](https://declaredesign.org/r/designlibrary/articles/how_to_write_and_contribute_designs.html) made in `DeclareDesign`, which will live as properly attributed entries in the library on our website\n- Or you can [submit designer functions that generate designs](https://declaredesign.org/r/designlibrary/articles/how_to_write_and_contribute_designers.html), which may be added to the CRAN version of the package\n\n---\n\nThis project is generously supported by a grant from the [Laura and John Arnold Foundation](http://www.arnoldfoundation.org) and seed funding from [Evidence in Governance and Politics (EGAP)](http://egap.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDeclareDesign%2FDesignLibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDeclareDesign%2FDesignLibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDeclareDesign%2FDesignLibrary/lists"}