IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v072i10.html
   My bibliography  Save this article

R2MLwiN: A Package to Run MLwiN from within R

Author

Listed:
  • Zhang, Zhengzheng
  • Parker, Richard M. A.
  • Charlton, Christopher M. J.
  • Leckie, George
  • Browne, William J.

Abstract

R2MLwiN is a new package designed to run the multilevel modeling software program MLwiN from within the R environment. It allows for a large range of models to be specified which take account of a multilevel structure, including continuous, binary, proportion, count, ordinal and nominal responses for data structures which are nested, cross-classified and/or exhibit multiple membership. Estimation is available via iterative generalized least squares (IGLS), which yields maximum likelihood estimates, and also via Markov chain Monte Carlo (MCMC) estimation for Bayesian inference. As well as employing MLwiN's own MCMC engine, users can request that MLwiN write BUGS model, data and initial values statements for use with WinBUGS or OpenBUGS (which R2MLwiN automatically calls via rbugs), employing IGLS starting values from MLwiN. Users can also take advantage of MLwiN's graphical user interface: for example to specify models and inspect plots via its interactive equations and graphics windows. R2MLwiN is supported by a large number of examples, reproducing all the analyses conducted in MLwiN's IGLS and MCMC manuals.

Suggested Citation

  • Zhang, Zhengzheng & Parker, Richard M. A. & Charlton, Christopher M. J. & Leckie, George & Browne, William J., 2016. "R2MLwiN: A Package to Run MLwiN from within R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 72(i10).
  • Handle: RePEc:jss:jstsof:v:072:i10
    DOI: http://hdl.handle.net/10.18637/jss.v072.i10
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v072i10/v72i10.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v072i10/R2MLwiN_0.8-3.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v072i10/v72i10-replication.zip
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v072.i10?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Leckie, George & Charlton, Chris, 2013. "runmlwin: A Program to Run the MLwiN Multilevel Modeling Software from within Stata," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 52(i11).
    2. Hadfield, Jarrod D., 2010. "MCMC Methods for Multi-Response Generalized Linear Mixed Models: The MCMCglmm R Package," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 33(i02).
    3. Bates, Douglas & Mächler, Martin & Bolker, Ben & Walker, Steve, 2015. "Fitting Linear Mixed-Effects Models Using lme4," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 67(i01).
    4. Browne, William J. & Draper, David & Goldstein, Harvey & Rasbash, Jon, 2002. "Bayesian and likelihood methods for fitting multilevel models with complex level-1 variation," Computational Statistics & Data Analysis, Elsevier, vol. 39(2), pages 203-225, April.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Treanor, Morag & Troncoso, Patricio, 2022. "Poverty, parental work intensity and child emotional and conduct problems," Social Science & Medicine, Elsevier, vol. 312(C).
    2. Valtteri Arstila & Alexandra L Georgescu & Henri Pesonen & Daniel Lunn & Valdas Noreika & Christine M Falter-Wagner, 2020. "Event timing in human vision: Modulating factors and independent functions," PLOS ONE, Public Library of Science, vol. 15(8), pages 1-22, August.
    3. Phil Mike Jones & Jon Minton & Andrew Bell, 2023. "Methods for disentangling period and cohort changes in mortality risk over the twentieth century: comparing graphical and modelling approaches," Quality & Quantity: International Journal of Methodology, Springer, vol. 57(4), pages 3219-3239, August.
    4. Michele La Rocca & Maria Lucia Parrella & Ilaria Primerano & Isabella Sulis & Maria Prosperina Vitale, 2017. "An integrated strategy for the analysis of student evaluation of teaching: from descriptive measures to explanatory models," Quality & Quantity: International Journal of Methodology, Springer, vol. 51(2), pages 675-691, March.
    5. Andrew Bell & Malcolm Fairbrother & Kelvyn Jones, 2019. "Fixed and random effects models: making an informed choice," Quality & Quantity: International Journal of Methodology, Springer, vol. 53(2), pages 1051-1074, March.
    6. Charlotte Arena & Christine Holmberg & Volker Winkler & Philipp Jaehn, 2021. "The Health Status and Healthcare Utilization of Ethnic Germans in Russia," IJERPH, MDPI, vol. 19(1), pages 1-13, December.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Lenth, Russell V., 2016. "Least-Squares Means: The R Package lsmeans," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 69(i01).
    2. Alexander Robitzsch, 2021. "A Comprehensive Simulation Study of Estimation Methods for the Rasch Model," Stats, MDPI, vol. 4(4), pages 1-23, October.
    3. Roman Lyach, 2021. "Harvest Rates of Rheophilic Fish Vimba vimba , Chondrostoma nasus , and Barbus barbus Have a Strong Relationship with Restocking Rates and Harvest Rates of Their Predator Silurus glanis in Lowland Mes," Sustainability, MDPI, vol. 13(20), pages 1-14, October.
    4. Andrew Bell & Malcolm Fairbrother & Kelvyn Jones, 2019. "Fixed and random effects models: making an informed choice," Quality & Quantity: International Journal of Methodology, Springer, vol. 53(2), pages 1051-1074, March.
    5. Krieg Sabine & Boonstra Harm Jan & Smeets Marc, 2016. "Small-Area Estimation with Zero-Inflated Data – a Simulation Study," Journal of Official Statistics, Sciendo, vol. 32(4), pages 963-986, December.
    6. Bawan Amin & Dómhnall J Jennings & Alison Norman & Andrew Ryan & Vasiliki Ioannidis & Alice Magee & Hayley-Anne Haughey & Amy Haigh & Simone Ciuti, 2022. "Neonate personality affects early-life resource acquisition in a large social mammal [An analysis of vigilance in the Spanish ibex (Capra pyrenaica)]," Behavioral Ecology, International Society for Behavioral Ecology, vol. 33(5), pages 1025-1035.
    7. Rotheram-Borus, Mary Jane & Tomlinson, Mark & Worthman, Carol M. & Norwood, Peter & le Roux, Ingrid & O'Connor, Mary J., 2023. "Maternal depression, alcohol use, and transient effects of perinatal paraprofessional home visiting in South Africa: Eight-year follow-up of a cluster randomized controlled trial," Social Science & Medicine, Elsevier, vol. 324(C).
    8. JANSSENS, Jochen & DE CORTE, Annelies & SÖRENSEN, Kenneth, 2016. "Water distribution network design optimisation with respect to reliability," Working Papers 2016007, University of Antwerp, Faculty of Business and Economics.
    9. Raymond Hernandez & Elizabeth A. Pyatak & Cheryl L. P. Vigen & Haomiao Jin & Stefan Schneider & Donna Spruijt-Metz & Shawn C. Roll, 2021. "Understanding Worker Well-Being Relative to High-Workload and Recovery Activities across a Whole Day: Pilot Testing an Ecological Momentary Assessment Technique," IJERPH, MDPI, vol. 18(19), pages 1-17, October.
    10. Christopher Hassall & Michael Nisbet & Evan Norcliffe & He Wang, 2024. "The Potential Health Benefits of Urban Tree Planting Suggested through Immersive Environments," Land, MDPI, vol. 13(3), pages 1-12, February.
    11. Jie Zhao & Ji Chen & Damien Beillouin & Hans Lambers & Yadong Yang & Pete Smith & Zhaohai Zeng & Jørgen E. Olesen & Huadong Zang, 2022. "Global systematic review with meta-analysis reveals yield advantage of legume-based rotations and its drivers," Nature Communications, Nature, vol. 13(1), pages 1-9, December.
    12. F J Heather & D Z Childs & A M Darnaude & J L Blanchard, 2018. "Using an integral projection model to assess the effect of temperature on the growth of gilthead seabream Sparus aurata," PLOS ONE, Public Library of Science, vol. 13(5), pages 1-19, May.
    13. Valentina Krenz & Arjen Alink & Tobias Sommer & Benno Roozendaal & Lars Schwabe, 2023. "Time-dependent memory transformation in hippocampus and neocortex is semantic in nature," Nature Communications, Nature, vol. 14(1), pages 1-17, December.
    14. Wolfgang Goymann & John C. Wingfield, 2014. "Male-to-female testosterone ratios, dimorphism, and life history—what does it really tell us?," Behavioral Ecology, International Society for Behavioral Ecology, vol. 25(4), pages 685-699.
    15. Morán-Ordóñez, Alejandra & Ameztegui, Aitor & De Cáceres, Miquel & de-Miguel, Sergio & Lefèvre, François & Brotons, Lluís & Coll, Lluís, 2020. "Future trade-offs and synergies among ecosystem services in Mediterranean forests under global change scenarios," Ecosystem Services, Elsevier, vol. 45(C).
    16. Jack McDonnell & Thomas McKenna & Kathryn A. Yurkonis & Deirdre Hennessy & Rafael Andrade Moral & Caroline Brophy, 2023. "A Mixed Model for Assessing the Effect of Numerous Plant Species Interactions on Grassland Biodiversity and Ecosystem Function Relationships," Journal of Agricultural, Biological and Environmental Statistics, Springer;The International Biometric Society;American Statistical Association, vol. 28(1), pages 1-19, March.
    17. Ana Pinto & Tong Yin & Marion Reichenbach & Raghavendra Bhatta & Pradeep Kumar Malik & Eva Schlecht & Sven König, 2020. "Enteric Methane Emissions of Dairy Cattle Considering Breed Composition, Pasture Management, Housing Conditions and Feeding Characteristics along a Rural-Urban Gradient in a Rising Megacity," Agriculture, MDPI, vol. 10(12), pages 1-18, December.
    18. Damian M. Herz & Manuel Bange & Gabriel Gonzalez-Escamilla & Miriam Auer & Keyoumars Ashkan & Petra Fischer & Huiling Tan & Rafal Bogacz & Muthuraman Muthuraman & Sergiu Groppa & Peter Brown, 2022. "Dynamic control of decision and movement speed in the human basal ganglia," Nature Communications, Nature, vol. 13(1), pages 1-15, December.
    19. Alvarez, Camila H. & Evans, Clare Rosenfeld, 2021. "Intersectional environmental justice and population health inequalities: A novel approach," Social Science & Medicine, Elsevier, vol. 269(C).
    20. Kathrin Stenchly & Marc Victor Hansen & Katharina Stein & Andreas Buerkert & Wilhelm Loewenstein, 2018. "Income Vulnerability of West African Farming Households to Losses in Pollination Services: A Case Study from Ouagadougou, Burkina Faso," Sustainability, MDPI, vol. 10(11), pages 1-12, November.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:072:i10. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.