{"id":22823104,"url":"https://github.com/dataobservatory-eu/openmusesampling","last_synced_at":"2026-02-09T19:07:10.387Z","repository":{"id":241514402,"uuid":"805310720","full_name":"dataobservatory-eu/openmusesampling","owner":"dataobservatory-eu","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-13T11:41:41.000Z","size":278,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T15:52:43.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dataobservatory-eu.github.io/openmusesampling/","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/dataobservatory-eu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-05-24T10:04:33.000Z","updated_at":"2024-12-13T11:41:46.000Z","dependencies_parsed_at":"2024-05-28T21:07:57.006Z","dependency_job_id":"c43aac45-b4f8-4130-a673-294ff333a1c3","html_url":"https://github.com/dataobservatory-eu/openmusesampling","commit_stats":null,"previous_names":["dataobservatory-eu/openmusesampling"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataobservatory-eu%2Fopenmusesampling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataobservatory-eu%2Fopenmusesampling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataobservatory-eu%2Fopenmusesampling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataobservatory-eu%2Fopenmusesampling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dataobservatory-eu","download_url":"https://codeload.github.com/dataobservatory-eu/openmusesampling/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250366679,"owners_count":21418768,"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-12-12T16:14:14.871Z","updated_at":"2026-02-09T19:07:05.346Z","avatar_url":"https://github.com/dataobservatory-eu.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openmusesampling\n\nThis package contains functions to sample ISRCs using a Metropolis-Hastings uniform random-walk algorithm. Run the code below to see how it works. We are using a data with 1204 observations as our \"population\" and estimating the mean of the popularity index with samples of size 100.\n\n```{r}\nexample \u003c- openmusesampling(x = \"popularity\", data= sample_data)\nexample\n```\n\nThe estimate mean should be close to the true mean in our data.\n\n```{r}\nmean(sample_data$popularity)\n```\n\nCheck the histogram\n\n```{r}\nhist(example$samples$sample_mean_popularity,\n     xlab = \"Values\",\n     main = \"Histogram of 1000 RW sample means with N = 100\",\n     cex.main = 1.5,\n     cex.lab = 1.3,\n     cex.axis = 1.3)\nbox()\npoints(x = mean(sample_data$popularity), y = 0, pch = 17, col = \"red\", cex = 2)\npoints(x = mean(example$samples$sample_mean_popularity), y = 0, pch = 2, col = \"blue\", cex = 2, lwd = 2)\nlegend(\"topright\", c(\"True pop. mean\", \"Mean RW distr.\"), col = c(\"red\", \"blue\"), lwd = 3,\n       bty = \"n\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataobservatory-eu%2Fopenmusesampling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdataobservatory-eu%2Fopenmusesampling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataobservatory-eu%2Fopenmusesampling/lists"}