Run mixed-effects models that include weights at every level. The WeMix package fits a weighted mixed model, also known as a multilevel, mixed, or hierarchical linear model (HLM). The weights could be inverse selection probabilities, such as those developed for an education survey where schools are sampled probabilistically, and then students inside of those schools are sampled probabilistically. Although mixed-effects models are already available in R, WeMix is unique in implementing methods for mixed models using weights at multiple levels. Both linear and logit models are supported. Models may have up to three levels. Random effects are estimated using the PIRLS algorithm from 'lme4pureR' (Walker and Bates (2013) <https://github.com/lme4/lme4pureR>).
Package details |
|
---|---|
Author | Emmanuel Sikali [pdr], Paul Bailey [aut, cre], Blue Webb [aut], Claire Kelley [aut], Trang Nguyen [aut], Huade Huo [aut], Steve Walker [cph] (lme4pureR PIRLS function), Doug Bates [cph] (lme4pureR PIRLS function), Eric Buehler [ctb], Christian Christrup Kjeldsen [ctb] |
Maintainer | Paul Bailey <pbailey@air.org> |
License | GPL-2 |
Version | 4.0.3 |
URL | https://american-institutes-for-research.github.io/WeMix/ |
Package repository | View on CRAN |
Installation |
Install the latest version of this package by entering the following in R:
|
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.