{"id":28473356,"url":"https://github.com/remlapmot/reffadjust","last_synced_at":"2026-02-22T14:37:35.574Z","repository":{"id":65524483,"uuid":"152719777","full_name":"remlapmot/reffadjust","owner":"remlapmot","description":"Stata commands for random effects adjustment","archived":false,"fork":false,"pushed_at":"2025-06-06T12:40:32.000Z","size":248,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T12:07:02.684Z","etag":null,"topics":["multilevel-models","multilevelmodels","randomeffects","stata"],"latest_commit_sha":null,"homepage":null,"language":"Stata","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/remlapmot.png","metadata":{"files":{"readme":"README.md","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":"2018-10-12T08:36:48.000Z","updated_at":"2025-06-06T12:40:34.000Z","dependencies_parsed_at":"2025-03-20T16:31:53.824Z","dependency_job_id":"2e157cc0-ec80-4281-bcf1-b4bac82ce336","html_url":"https://github.com/remlapmot/reffadjust","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/remlapmot/reffadjust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remlapmot%2Freffadjust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remlapmot%2Freffadjust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remlapmot%2Freffadjust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remlapmot%2Freffadjust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remlapmot","download_url":"https://codeload.github.com/remlapmot/reffadjust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remlapmot%2Freffadjust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263093856,"owners_count":23412890,"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":["multilevel-models","multilevelmodels","randomeffects","stata"],"created_at":"2025-06-07T12:07:03.644Z","updated_at":"2026-02-22T14:37:35.562Z","avatar_url":"https://github.com/remlapmot.png","language":"Stata","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stata commands for random effects adjustment: the reffadjust package\n\nThe `reffadjust` package provides postestimation commands to perform adjustment of random effects estimates.\n\nThe `reffadjust` commands are:\n\n- `reffadjustsim`: simulating from the distribution of random effect variances and covariances\n- `reffadjust4nlcom`: regression coefficient formula to pass to `nlcom`.\n\nSince multilevel models including random effects, such as those implemented in `MLwiN` and `mixed`/`xtmixed`, return estimates of the variances and covariances of the random effects and the corresponding variances and covariances of these estimates we can use these to estimate adjusted coefficients.\n\nThe approach is described in more detail in Macdonald-Wallis et al. (2012) and Palmer et al. (2014).\n\n## Installation\n\nTo install, issue in Stata (in versions 13 and above) using the **github** package, first install the **github** package:\n\n```stata\nnet install github, from(\"https://haghish.github.io/github/\")\n```\n\nthen run\n\n```stata\ngithub install remlapmot/reffadjust\n```\n\nAlternatively use `net install` directly as follows\n\n```stata\nnet install reffadjust, from(\"https://raw.github.com/remlapmot/reffadjust/master/\")\n```\n\n### Installation of MLwiN\n\nThis is available from \u003chttps://www.bristol.ac.uk/cmm/software/mlwin/\u003e.\n\nThe MLwiN libraries are now available natively for macOS (both Intel and Apple Silicon Macs) and a range of Linux ditributions.\n\nOn macOS the `mlnscript` and `libmln.dylib` files must be granted permission to run in _System Settings_ | _Privacy and Security_ | Scroll down to _Security_ section. See my [blogpost](https://remlapmot.github.io/post/2024/mlnscript-r2mlwin-apple-silicon/) for more details.\n\n## Running tests\n\nEither, in Stata change directory to the _cscripts_ directory and run\n\n```stata\ndo master\n```\n\nor from a terminal session run the _test_ recipe in the justfile\n\n```sh\njust test\n```\n\n## Acknowledgements\n\nThanks to Gemma Clayton for discovering that `reffadjustsim` had stopped working under a recent version of Stata. And thanks to Stata Corp. for providing me with a fix for this issue.\n\n## Notes\n\n- 2025-12-17 Tested under MLwiN 3.17 and StataNow 19.5 on macOS M4 chip\n- 2025-10-20 Tested under MLwiN 3.16 and StataNow 19.5 on macOS M4 chip\n- 2025-10-17 reffadjust now has a website \u003chttps://remlapmot.github.io/reffadjust/\u003e\n- 2025-10-12 Tested under MLwiN 3.15 and StataNow 19.5 on macOS M4 chip\n- 2025-09-26 Tested under MLwiN 3.14 and StataNow 19.5 on macOS M4 chip\n- 2025-06-06 Tested under MLwiN 3.14 and StataNow 18.5 on macOS M4 chip\n- 2025-04-05 Tested under MLwiN 3.13 and StataNow 18.5 on macOS M4 chip\n- 2025-03-20 Tested under MLwiN 3.13 and StataNow 18.5 on macOS and Windows 11\n- 2024-10-12 Tested under MLwiN 3.13 and StataNow 18.5\n- 2024-08-12 Tested under MLwiN 3.12 and StataNow 18.5\n- 2024-06-15 Tested under MLwiN 3.11 and StataNow 18.5\n- 2024-03-19 Tested under MLwiN 3.10 and Stata 18.0\n- 2024-01-30 Tested under MLwiN 3.09 (and Stata 18)\n- 2024-01-29 Tested on Stata 18 and macOS\n\n## References\n\n- Macdonald-Wallis C, Lawlor DA, Palmer TM, Tilling K. Multivariate multilevel spline models for parallel growth processes: application to weight and mean arterial pressure in pregnancy. Statistics in Medicine, 2012, 31, 26, 3147--3164. \u003chttps://doi.org/10.1002/sim.5385\u003e\n- Palmer TM, Macdonald-Wallis CM, Lawlor DA, Tilling K. Estimating adjusted associations between random effects from multilevel models: the reffadjust package. Stata Journal, 2014, 14, 1, 119--140. \u003chttps://www.stata-journal.com/article.html?article=st0327\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremlapmot%2Freffadjust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremlapmot%2Freffadjust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremlapmot%2Freffadjust/lists"}