{"id":31772075,"url":"https://github.com/inseefr/icarus","last_synced_at":"2026-02-27T20:37:27.841Z","repository":{"id":34868617,"uuid":"38872499","full_name":"InseeFr/icarus","owner":"InseeFr","description":"A package with useful functions for calibration and reweighting in survey sampling","archived":false,"fork":false,"pushed_at":"2025-09-05T13:43:40.000Z","size":14934,"stargazers_count":10,"open_issues_count":9,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-05T15:37:09.109Z","etag":null,"topics":["calibration","icarus","sampling","stats","survey-sampling"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"avelino/awesome-go","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InseeFr.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2015-07-10T09:27:17.000Z","updated_at":"2025-09-05T13:43:23.000Z","dependencies_parsed_at":"2025-09-05T15:20:38.441Z","dependency_job_id":"163ce38f-0c8c-4094-bab7-dbd17adbccea","html_url":"https://github.com/InseeFr/icarus","commit_stats":null,"previous_names":["inseefr/icarus","haroine/icarus"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/InseeFr/icarus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2Ficarus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2Ficarus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2Ficarus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2Ficarus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InseeFr","download_url":"https://codeload.github.com/InseeFr/icarus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2Ficarus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002601,"owners_count":26083426,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calibration","icarus","sampling","stats","survey-sampling"],"created_at":"2025-10-10T03:55:45.311Z","updated_at":"2025-10-10T03:55:48.320Z","avatar_url":"https://github.com/InseeFr.png","language":"R","readme":"[![Mentioned in Awesome Official Statistics ](https://awesome.re/mentioned-badge.svg)](https://github.com/SNStatComp/awesome-official-statistics-software)\n\n# Icarus\n\nIcarus (Icarus Calibrates And Reweights Units in Samples) is an R package providing useful functions for calibration and reweighting estimators in survey sampling. The former name of this package was gaston.\n\n## Cite\n\nTo cite Icarus in publications use: Rebecq, Antoine (2017). Icarus: an R package for calibration in survey sampling. R package version 0.3.0.\n\n## Install\n\nYou can use the following instruction to install icarus (from CRAN):\n\n```\ninstall.packages(\"icarus\")\n```\n\nHowever, if you wish to install the latest version of icarus, you can use devtools and install directly from this github repo:\n\n```\ninstall.packages(\"devtools\")\nlibrary(devtools)\ninstall_github(\"haroine/icarus\")\n````\n\n## Short example\n\nIn this example, we perform calibration (with the \"raking\" method) on the test dataset _data_employees_ included in icarus:\n\n```\nlibrary(icarus)\n\nN \u003c- 300 ## Population size\n## Compute the Horvitz-Thompson estimator (returns 1.666667)\nweightedMean(data_employees$movies, data_employees$weight, N)\n\n## Add calibration margins\nmar1 \u003c- c(\"category\",3,80,90,60)\nmar2 \u003c- c(\"sex\",2,140,90,0)\nmar3 \u003c- c(\"department\",2,100,130,0)\nmar4 \u003c- c(\"salary\", 0, 470000,0,0)\nmargins \u003c- rbind(mar1, mar2, mar3, mar4)\n## Compute calibration weights\nwCal \u003c- calibration(data=data_employees, marginMatrix=margins, colWeights=\"weight\"\n                           , method=\"raking\", description=FALSE)\n                           \n## Value of the calibrated estimator: 2.471917\nweightedMean(data_employees$movies, wCal, N)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finseefr%2Ficarus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finseefr%2Ficarus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finseefr%2Ficarus/lists"}