{"id":17152790,"url":"https://github.com/jeffreypullin/rgreta","last_synced_at":"2025-08-09T23:39:44.596Z","repository":{"id":174115795,"uuid":"171234474","full_name":"jeffreypullin/rgreta","owner":"jeffreypullin","description":"Simple simulation of greta models","archived":false,"fork":false,"pushed_at":"2019-02-18T07:38:03.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T18:11:18.453Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeffreypullin.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"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}},"created_at":"2019-02-18T07:20:08.000Z","updated_at":"2019-02-18T07:38:05.000Z","dependencies_parsed_at":"2023-07-06T14:45:59.064Z","dependency_job_id":null,"html_url":"https://github.com/jeffreypullin/rgreta","commit_stats":null,"previous_names":["jeffreypullin/rgreta"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffreypullin%2Frgreta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffreypullin%2Frgreta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffreypullin%2Frgreta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffreypullin%2Frgreta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffreypullin","download_url":"https://codeload.github.com/jeffreypullin/rgreta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245275329,"owners_count":20588886,"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-10-14T21:44:33.901Z","updated_at":"2025-03-24T12:44:50.535Z","avatar_url":"https://github.com/jeffreypullin.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n```{r setup, include=FALSE}\nknitr::opts_chunk$set(echo = TRUE)\n```\n\n# rgreta\n\n**rgreta** provides support for simple simulation of models defined in the \n**greta** modelling language/R package\n\n## Usage\n\nDefine a simple example greta model:\n```{r, message=FALSE}\nlibrary(greta)\n\nint \u003c- normal(0, 10)\ncoef \u003c- normal(0, 10)\nsd \u003c- cauchy(0, 3, truncation = c(0, Inf))\n\nmu \u003c- int + coef * attitude$complaints\n\ndistribution(attitude$rating) \u003c- normal(mu, sd)\n\nm \u003c- model(int, coef, sd)\n```\n\nWe can then simulate from the model:\n```{r, message=FALSE}\nlibrary(rgreta)\nsimulations \u003c- simulate(m)\nhead(simulations)\n```\n\nOr we can simulate setting parameters to certain values\n```{r}\nsimulations \u003c- simulate(m, list(int = 1, coef = 1, sd = 1))\nhead(simulations)\n```\n\n## Install\n```{r, eval=FALSE}\ndevtools::install_github(\"Voltemand/rgreta\")\n```\n\n## TODO\n\n**rgreta** is very much still a work in progress. The current feature/idea list \nis:\n\n* Support for more distibutions and operations - currently rgreta only supports \n  the normal and cauchy distributions and addition and multiplication operations\n* Seed passing\n* A way to pass simulated data back to models\n* Support for tensorflow probability distibutions samplers\n* Returning of simulated parameters","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffreypullin%2Frgreta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffreypullin%2Frgreta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffreypullin%2Frgreta/lists"}