R2MLwiN Using the multilevel modelling software package MLwiN from R

Similar documents
Handling attrition and non-response in longitudinal data

Model Calibration with Open Source Software: R and Friends. Dr. Heiko Frings Mathematical Risk Consulting

SPSS Guide: Regression Analysis

CHAPTER 3 EXAMPLES: REGRESSION AND PATH ANALYSIS

Introduction to Multilevel Modeling Using HLM 6. By ATS Statistical Consulting Group

Imputing Missing Data using SAS

HLM software has been one of the leading statistical packages for hierarchical

A Guide to Sample Size Calculations for Random Effect Models via Simulation and the MLPowSim Software Package

MISSING DATA TECHNIQUES WITH SAS. IDRE Statistical Consulting Group

More details on the inputs, functionality, and output can be found below.

Introduction to Longitudinal Data Analysis

Stephen du Toit Mathilda du Toit Gerhard Mels Yan Cheng. LISREL for Windows: PRELIS User s Guide

Introduction to Data Analysis in Hierarchical Linear Models

Εισαγωγή στην πολυεπίπεδη μοντελοποίηση δεδομένων με το HLM. Βασίλης Παυλόπουλος Τμήμα Ψυχολογίας, Πανεπιστήμιο Αθηνών

Multilevel Modelling of medical data

Object systems available in R. Why use classes? Information hiding. Statistics 771. R Object Systems Managing R Projects Creating R Packages

The Extremes Toolkit (extremes)

Markov Chain Monte Carlo Simulation Made Simple

Interaction effects and group comparisons Richard Williams, University of Notre Dame, Last revised February 20, 2015

BayesX - Software for Bayesian Inference in Structured Additive Regression

Generalized linear models and software for network meta-analysis

Illustration (and the use of HLM)

Bayesian Machine Learning (ML): Modeling And Inference in Big Data. Zhuhua Cai Google, Rice University

CHAPTER 4 EXAMPLES: EXPLORATORY FACTOR ANALYSIS

Introduction to Hierarchical Linear Modeling with R

Package hier.part. February 20, Index 11. Goodness of Fit Measures for a Regression Hierarchy

The power of IBM SPSS Statistics and R together

CHAPTER 9 EXAMPLES: MULTILEVEL MODELING WITH COMPLEX SURVEY DATA


Bayesian Statistics in One Hour. Patrick Lam

Please follow the directions once you locate the Stata software in your computer. Room 114 (Business Lab) has computers with Stata software

E(y i ) = x T i β. yield of the refined product as a percentage of crude specific gravity vapour pressure ASTM 10% point ASTM end point in degrees F

Qualitative vs Quantitative research & Multilevel methods

Introduction to parallel computing in R

STA 4273H: Statistical Machine Learning

Session 15 OF, Unpacking the Actuary's Technical Toolkit. Moderator: Albert Jeffrey Moore, ASA, MAAA

Please follow these guidelines when preparing your answers:

Why Taking This Course? Course Introduction, Descriptive Statistics and Data Visualization. Learning Goals. GENOME 560, Spring 2012

Introduction to RStudio

A Short Guide to R with RStudio

Psychology 209. Longitudinal Data Analysis and Bayesian Extensions Fall 2012

Lecture 2: Descriptive Statistics and Exploratory Data Analysis

Spatial Statistics Chapter 3 Basics of areal data and areal data modeling

Cool Tools for PROC LOGISTIC

PS 271B: Quantitative Methods II. Lecture Notes

Towards running complex models on big data

Applications of R Software in Bayesian Data Analysis

A Bayesian Antidote Against Strategy Sprawl

Students' Opinion about Universities: The Faculty of Economics and Political Science (Case Study)

Tutorial on Markov Chain Monte Carlo

Introducing the Multilevel Model for Change

A Bootstrap Metropolis-Hastings Algorithm for Bayesian Analysis of Big Data

data visualization and regression

Linda K. Muthén Bengt Muthén. Copyright 2008 Muthén & Muthén Table Of Contents

R: A Free Software Project in Statistical Computing

Analysis of Financial Time Series

HYPOTHESIS TESTING: CONFIDENCE INTERVALS, T-TESTS, ANOVAS, AND REGRESSION

Dealing with large datasets

Chapter 13 Introduction to Nonlinear Regression( 非 線 性 迴 歸 )

A Bayesian hierarchical surrogate outcome model for multiple sclerosis

STAT3016 Introduction to Bayesian Data Analysis

SPSS: Getting Started. For Windows

Handling missing data in large data sets. Agostino Di Ciaccio Dept. of Statistics University of Rome La Sapienza

A REVIEW OF CURRENT SOFTWARE FOR HANDLING MISSING DATA

Package zic. September 4, 2015

Example: Credit card default, we may be more interested in predicting the probabilty of a default than classifying individuals as default or not.

A Latent Variable Approach to Validate Credit Rating Systems using R

Section Format Day Begin End Building Rm# Instructor. 001 Lecture Tue 6:45 PM 8:40 PM Silver 401 Ballerini

Engineering Problem Solving and Excel. EGN 1006 Introduction to Engineering

DEPARTMENT OF PSYCHOLOGY UNIVERSITY OF LANCASTER MSC IN PSYCHOLOGICAL RESEARCH METHODS ANALYSING AND INTERPRETING DATA 2 PART 1 WEEK 9

STATISTICA Formula Guide: Logistic Regression. Table of Contents

Logs Transformation in a Regression Equation

Descriptive Statistics

Auxiliary Variables in Mixture Modeling: 3-Step Approaches Using Mplus

> plot(exp.btgpllm, main = "treed GP LLM,", proj = c(1)) > plot(exp.btgpllm, main = "treed GP LLM,", proj = c(2)) quantile diff (error)

SAS Software to Fit the Generalized Linear Model

Package EstCRM. July 13, 2015

Exponential Random Graph Models for Social Network Analysis. Danny Wyatt 590AI March 6, 2009

CHAPTER 12 EXAMPLES: MONTE CARLO SIMULATION STUDIES

Univariate Regression

Schedule Risk Analysis Simulator using Beta Distribution

Statistics & Probability PhD Research. 15th November 2014

Outline. hardware components programming environments. installing Python executing Python code. decimal and binary notations running Sage

Chapter 5 Analysis of variance SPSS Analysis of variance

Silvermine House Steenberg Office Park, Tokai 7945 Cape Town, South Africa Telephone:

Introduction to Regression and Data Analysis

Analyzing Intervention Effects: Multilevel & Other Approaches. Simplest Intervention Design. Better Design: Have Pretest

Imperfect Debugging in Software Reliability

Logistic Regression. Jia Li. Department of Statistics The Pennsylvania State University. Logistic Regression

Java Modules for Time Series Analysis

Statistics Graduate Courses

Computational Statistics: A Crash Course using R for Biologists (and Their Friends)

ECLT5810 E-Commerce Data Mining Technique SAS Enterprise Miner -- Regression Model I. Regression Node

Generalized Linear Models

Transcription:

Using the multilevel modelling software package MLwiN from R Richard Parker Zhengzheng Zhang Chris Charlton George Leckie Bill Browne Centre for Multilevel Modelling (CMM) University of Bristol

Using the multilevel modelling software package MLwiN from R

Using the multilevel modelling software package MLwiN from R R2MLwiN

Using the multilevel modelling software package MLwiN from R R2MLwiN runmlwin Stata

Using the multilevel modelling software package MLwiN from R R2MLwiN SPSS BUGS runmlwin Stata gretl MATLAB JAGS aml SAS

Using the multilevel modelling software package MLwiN from R R2MLwiN SPSS BUGS runmlwin Stata gretl MATLAB JAGS aml SAS

Why operate one application from another? A B

Why operate one application from another? A Perhaps this package (B) has functionality / facilities of value to user that this package (A) doesn t B

Why operate one application from another? A E.g. package B can: Perhaps this package (B) has functionality / facilities of value to user that this package (A) doesn t B

Why operate one application from another? A E.g. package B can: Perhaps this package (B) has functionality / facilities of value to user that this package (A) doesn t fit a certain type of statistical model B

Why operate one application from another? A E.g. package B can: Perhaps this package (B) has functionality / facilities of value to user that this package (A) doesn t fit a certain type of statistical model use a quicker / less-biased / etc. means of estimation B

Why operate one application from another? A E.g. package B can: Perhaps this package (B) has functionality / facilities of value to user that this package (A) doesn t fit a certain type of statistical model use a quicker / less-biased / etc. means of estimation produce a certain type of plot, table, statistic, etc. B

Why operate one application from another? A E.g. package B can: fit a certain type of statistical model use a quicker / less-biased / etc. means of estimation produce a certain type of plot, table, statistic, etc. or perhaps package B is: Perhaps this package (B) has functionality / facilities of value to user that this package (A) doesn t B

Why operate one application from another? E.g. package B can: fit a certain type of statistical model use a quicker / less-biased / etc. means of estimation produce a certain type of plot, table, statistic, etc. or perhaps package B is: more familiar A Perhaps this package (B) has functionality / facilities of value to user that this package (A) doesn t B

Why operate one application from another? E.g. package B can: fit a certain type of statistical model use a quicker / less-biased / etc. means of estimation produce a certain type of plot, table, statistic, etc. or perhaps package B is: more familiar A Perhaps this package (B) has functionality / facilities of value to user that this package (A) doesn t has useful supporting resources B

Why operate one application from another? A B

Why operate one application from another? A B The user could (in principle) operate package B directly

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf B

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf The user might not know how to operate Package B B

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf The user might not know how to operate Package B and it s not realistic to learn how to do so given time, etc., available B

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf The user might not know how to operate Package B and it s not realistic to learn how to do so given time, etc., available or the user wants to use A as a means of learning how to use B directly him/herself B

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf B

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf Or perhaps the user does know how to directly operate package B, but it s more convenient if A does so for him/her, because e.g.: B

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf Or perhaps the user does know how to directly operate package B, but it s more convenient if A does so for him/her, because e.g.: data s already in A and it s time-consuming to translate it, oneself, into package B s format B

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf Or perhaps the user does know how to directly operate package B, but it s more convenient if A does so for him/her, because e.g.: data s already in A and it s time-consuming to translate it, oneself, into package B s format can more efficiently fit many models / produce many plots / etc. in B if run it from A B

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf Or perhaps the user does know how to directly operate package B, but it s more convenient if A does so for him/her, because e.g.: data s already in A and it s time-consuming to translate it, oneself, into package B s format can more efficiently fit many models / produce many plots / etc. in B if run it from A wish to use A s functionality to post-process the results from B B

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf Or perhaps the user does know how to directly operate package B, but it s more convenient if A does so for him/her, because e.g.: data s already in A and it s time-consuming to translate it, oneself, into package B s format can more efficiently fit many models / produce many plots / etc. in B if run it from A wish to use A s functionality to post-process the results from B may be able to better document analyses in A B

Why operate one application from another? A data & commands results The user could (in principle) operate package B directly but wants package A to do so on their behalf Or perhaps the user does know how to directly operate package B, but it s more convenient if A does so for him/her, because e.g.: data s already in A and it s time-consuming to translate it, oneself, into package B s format can more efficiently fit many models / produce many plots / etc. in B if run it from A wish to use A s functionality to post-process the results from B may be able to better document analyses in A may want to compare model fits from many packages B

Using the multilevel modelling software package MLwiN from R R2MLwiN SPSS BUGS runmlwin Stata gretl MATLAB JAGS aml SAS

Using the multilevel modelling software Stan package MLwiN from R R2MLwiN SPSS BUGS runmlwin Stata gretl MATLAB JAGS aml SAS

First released (on CRAN) December 2012 Most recent release (0.8-0) March 2015 this has a number of new features / syntactical changes but back-compatibility maintained where possible R2MLwiN Using the multilevel modelling software package MLwiN from R

MLwiN R2MLwiN Developed & maintained by Centre for Multilevel Modelling (now at Bristol) Estimated 18,000 users worldwide Large body of supporting documentation, examples, workshops, etc. As well as Windows, native versions of MLwiN engine for Mac OS X and Linux now available too

MLwiN Allows for a variety of response types to be modelled, including: continuous binary count ordinal nominal multivariate combinations (i.e., simultaneous equations) Estimation available via: IGLS (iterative generalised least squares), which yields maximum likelihood estimates MCMC (Markov chain Monte Carlo ) estimation for Bayesian inference Supported data structures: nested, cross-classified and/or multiple membership Other features include: fitting of complex level 1 variance (heteroskedastic) models multilevel factor analysis (MCMC only) adjustments for measurement errors in predictors spatial conditional auto regressive (CAR) models autoregressive structures at level 1 a selection of MCMC algorithms to increase efficiency.

MLwiN R2MLwiN GUI (graphical user interface) has number of innovative features, e.g.: Interactive equations window:

MLwiN R2MLwiN GUI (graphical user interface) has number of innovative features, e.g.: Interactive equations window:

MLwiN R2MLwiN GUI (graphical user interface) has number of innovative features, e.g.: Interactive equations window:

MLwiN R2MLwiN GUI (graphical user interface) has number of innovative features, e.g.: Interactive equations window:

MLwiN GUI (graphical user interface) has number of innovative features, e.g.: Interactive graphs: R2MLwiN

MLwiN R2MLwiN Most users will likely operate MLwiN via GUI Macro language can be unwieldy

Using the multilevel modelling software package MLwiN from R

Using the multilevel modelling software package MLwiN from R

Using the multilevel modelling software package MLwiN from R

Using the multilevel modelling software package MLwiN from R Tells user where it s expecting to find MLwiN; easy to change path if it s elsewhere

All sample datasets released with MLwiN available with R2MLwiN

R> F1 <- normexam ~ 1 + (1 school) + + (1 student)

R> F1 <- normexam ~ 1 + (1 school) + + (1 student) normexam ij = β 0 + u j + e ij u j ~N(0, σ u 2 ) e ij ~N(0, σ e 2 )

R> F1 <- normexam ~ 1 + (1 school) + + (1 student) normexam ij = β 0 + u j + e ij u j ~N(0, σ u 2 ) e ij ~N(0, σ e 2 ) Note: need to explicitly add intercept (as in MLwiN) Specify random part of model in order of hierarchy

R> F1 <- normexam ~ 1 + (1 school) + + (1 student) R> (VarCompModel <- runmlwin( + Formula = F1, data = tutorial))

R> F1 <- normexam ~ 1 + (1 school) + + (1 student) R> (VarCompModel <- runmlwin( + Formula = F1, data = tutorial))

R> F1 <- normexam ~ 1 + (1 school) + + (1 student) R> (VarCompModel <- runmlwin( + Formula = F1, data = tutorial)) runmlwin function: 1. takes input & creates MLwiN macro file 2. calls MLwiN and executes macro script 3. output is returned to R for post-processing

R> F1 <- normexam ~ 1 + (1 school) + + (1 student) R> (VarCompModel <- runmlwin( + Formula = F1, data = tutorial)) runmlwin function Arguments include: Formula data D since we don t specify here, using default: D = Normal estoptions again using default, which is IGLS: estoptions = list(estm = 0) See?runMLwiN for full list of arguments

R> F1 <- normexam ~ 1 + (1 school) + + (1 student) R> (VarCompModel <- runmlwin( + Formula = F1, data = tutorial)) runmlwin function Arguments include: Formula data D since we don t specify here, using default: D = Normal estoptions again using default, which is IGLS: estoptions = list(estm = 0) See?runMLwiN for full list of arguments

R> F2 <- normexam ~ 1 + (1 student)

R> F2 <- normexam ~ 1 + (1 student) R> OneLevelModel <- runmlwin( + Formula = F2, data = tutorial)

R> F2 <- normexam ~ 1 + (1 student) R> OneLevelModel <- runmlwin( + Formula = F2, data = tutorial) R> library("lmtest") R> lrtest(onelevelmodel, VarCompModel) Model objects returned by R2MLwiN contain some generic S4 methods e.g. has a method for the function loglik which allows us to conduct a likelihood ratio test using the lrtest function (part of the lmtest package)

R> F3 <- normexam ~ 1 + standlrt + + (1 + standlrt school) + (1 student) R> (RandomSlopeModel <- runmlwin( + Formula = F3, estoptions = list( + resi.store = TRUE), data = tutorial))

R> F3 <- normexam ~ 1 + standlrt + + (1 + standlrt school) + (1 student) R> (RandomSlopeModel <- runmlwin( + Formula = F3, estoptions = list( + resi.store = TRUE), data = tutorial))

R> F3 <- normexam ~ 1 + standlrt + + (1 + standlrt school) + (1 student) R> (RandomSlopeModel <- runmlwin( + Formula = F3, estoptions = list( + resi.store = TRUE), data = tutorial)) R> predlines(randomslopemodel, + xname="standlrt", lev = 2, legend = F)

R> F3 <- normexam ~ 1 + standlrt + + (1 + standlrt school) + (1 student) R> (RandomSlopeModel <- runmlwin( + Formula = F3, estoptions = list( + resi.store = TRUE), data = tutorial)) R> predlines(randomslopemodel, + xname="standlrt", lev = 2, legend = F)

R> F3 <- normexam ~ 1 + standlrt + + (1 + standlrt school) + (1 student) R> (RandomSlopeModel <- runmlwin( + Formula = F3, estoptions = list( + resi.store = TRUE), data = tutorial)) R> predlines(randomslopemodel, + xname="standlrt", lev = 2, legend = F) R> predlines(randomslopemodel, + xname = "standlrt", lev = 2, + selected = c(30, 44, 53, 59))

R> F3 <- normexam ~ 1 + standlrt + + (1 + standlrt school) + (1 student) R> (RandomSlopeModel <- runmlwin( + Formula = F3, estoptions = list( + resi.store = TRUE), data = tutorial)) R> predlines(randomslopemodel, + xname="standlrt", lev = 2, legend = F) R> predlines(randomslopemodel, + xname = "standlrt", lev = 2, + selected = c(30, 44, 53, 59))

R> F4 <- normexam ~ 1 + standlrt + + (1 + standlrt school) + + (1 + standlrt student) R> ComplexLevOneModel <- runmlwin( + Formula = F4, data = tutorial, + estoptions = list(debugmode = TRUE))

R> F4 <- normexam ~ 1 + standlrt + + (1 + standlrt school) + + (1 + standlrt student) R> ComplexLevOneModel <- runmlwin( + Formula = F4, data = tutorial, + estoptions = list(debugmode = TRUE))

R> data( bang1 ) R> F5 = logit(use, cons) ~ 1 + age + + lc + urban + (1 + urban district) R> (binomialmcmc <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1)))

R> data( bang1 ) R> F5 = logit(use, cons) ~ 1 + age + + lc + urban + (1 + urban district) R> (binomialmcmc <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1)))

R> data( bang1 ) R> F5 = logit(use, cons) ~ 1 + age + + lc + urban + (1 + urban district) R> (binomialmcmc <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1)))

R> data( bang1 ) R> F5 = logit(use, cons) ~ 1 + age + + lc + urban + (1 + urban district) R> (binomialmcmc <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1))) R> print(binomialmcmc, z.ratio = FALSE)

R> data( bang1 ) R> F5 = logit(use, cons) ~ 1 + age + + lc + urban + (1 + urban district) R> (binomialmcmc <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1))) R> print(binomialmcmc, z.ratio = FALSE)

R> data( bang1 ) R> F5 = logit(use, cons) ~ 1 + age + + lc + urban + (1 + urban district) R> (binomialmcmc <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1))) R> print(binomialmcmc, z.ratio = FALSE) R> sixway(binomialmcmc["chains"] + [, "FP_Intercept", drop = FALSE], + "beta_0")

R> data( bang1 ) R> F5 = logit(use, cons) ~ 1 + age + + lc + urban + (1 + urban district) R> (binomialmcmc <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1))) R> print(binomialmcmc, z.ratio = FALSE) R> sixway(binomialmcmc["chains"] + [, "FP_Intercept", drop = FALSE], + "beta_0")

R> data( bang1 ) R> F5 = logit(use, cons) ~ 1 + age + + lc + urban + (1 + urban district) R> (binomialmcmc <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1))) R> print(binomialmcmc, z.ratio = FALSE) R> sixway(binomialmcmc["chains"] + [, "FP_Intercept", drop = FALSE], + "beta_0") R> trajectories(binomialmcmc["chains"] + [, "FP_Intercept", drop = FALSE])

R> data( bang1 ) R> F5 = logit(use, cons) ~ 1 + age + + lc + urban + (1 + urban district) R> (binomialmcmc <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1))) R> print(binomialmcmc, z.ratio = FALSE) R> sixway(binomialmcmc["chains"] + [, "FP_Intercept", drop = FALSE], + "beta_0") R> trajectories(binomialmcmc["chains"] + [, "FP_Intercept", drop = FALSE])

R> (OrthogbinomialMCMC <- runmlwin( + Formula = F5, D = "Binomial", + data = bang1, estoptions = list(estm = 1, + mcmcoptions = list(orth = 1)))) R> trajectories(orthogbinomialmcmc["chains"] + [,"FP_Intercept", drop = FALSE])

R> (OrthogbinomialMCMC <- runmlwin( + Formula = F5, D = "Binomial", + data = bang1, estoptions = list(estm = 1, + mcmcoptions = list(orth = 1)))) R> trajectories(orthogbinomialmcmc["chains"] + [,"FP_Intercept", drop = FALSE])

As well as using MLwiN s own MCMC estimation engine, R2MLwiN can fit models in WinBUGS / OpenBUGS

As well as using MLwiN s own MCMC estimation engine, R2MLwiN can fit models in WinBUGS / OpenBUGS With the aid of the rbugs package (Yan and Prates 2013), user can employ single runmlwin function call to: obtain starting values from an IGLS run in MLwiN, automatically generate necessary BUGS model code, initial values, data files, and script, fit the model in BUGS R2MLwiN

R> WinBUGS <- "C:/WinBUGS14/WinBUGS14.exe" R> BUGSmodel <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1), + BUGO = c(version = 4, n.chains = 1, + seed = 1, bugs = WinBUGS, + OpenBugs = FALSE))

R> WinBUGS <- "C:/WinBUGS14/WinBUGS14.exe" R> BUGSmodel <- runmlwin(formula = F5, + D = "Binomial", data = bang1, + estoptions = list(estm = 1), + BUGO = c(version = 4, n.chains = 1, + seed = 1, bugs = WinBUGS, + OpenBugs = FALSE))

As well as usual help files R2MLwiN comes with demos as well these replicate all the examples in: MLwiN User Manual (IGLS) MLwiN MCMC Manual

To list demos: R> demo(package = "R2MLwiN")

To list demos: R> demo(package = "R2MLwiN")

To list demos: R> demo(package = "R2MLwiN")

To list demos: R> demo(package = "R2MLwiN")

To list demos: R> demo(package = "R2MLwiN") To run a specific demo: R> demo(mcmcguide03)

To list demos: R> demo(package = "R2MLwiN") To run a specific demo: R> demo(mcmcguide03) To show demo script: R> file.show(system.file("demo", "MCMCGuide03.R", package = "R2MLwiN"))

To list demos: R> demo(package = "R2MLwiN") To run a specific demo: R> demo(mcmcguide03) To show demo script: R> file.show(system.file("demo", "MCMCGuide03.R", package = "R2MLwiN"))

Obtaining R2MLwiN & finding out more:

Obtaining R2MLwiN & finding out more: R2MLwiN available on CRAN, e.g. via: R> install.packages("r2mlwin", + repos = "http://cran.r-project.org")

Obtaining R2MLwiN & finding out more: R2MLwiN available on CRAN, e.g. via: R> install.packages("r2mlwin", + repos = "http://cran.r-project.org") & supporting info on Centre for Multilevel Modelling website: http://www.bristol.ac.uk/cmm/software/r2mlwin/ includes link to log files of demo runs

Obtaining R2MLwiN & finding out more: R2MLwiN available on CRAN, e.g. via: R> install.packages("r2mlwin", + repos = "http://cran.r-project.org") & supporting info on Centre for Multilevel Modelling website: http://www.bristol.ac.uk/cmm/software/r2mlwin/ includes link to log files of demo runs Leaflets available at the front too

Obtaining R2MLwiN & finding out more: Forum on Centre for Multilevel Modelling website : R2MLwiN available on CRAN, e.g. via: R> install.packages("r2mlwin", + repos = "http://cran.r-project.org") & supporting info on Centre for Multilevel Modelling website: http://www.bristol.ac.uk/cmm/software/r2mlwin/ includes link to log files of demo runs Leaflets available at the front too

Obtaining R2MLwiN & finding out more: R2MLwiN available on CRAN, e.g. via: R> install.packages("r2mlwin", + repos = "http://cran.r-project.org") & supporting info on Centre for Multilevel Modelling website: http://www.bristol.ac.uk/cmm/software/r2mlwin/ includes link to log files of demo runs Leaflets available at the front too

Obtaining R2MLwiN & finding out more: R2MLwiN available on CRAN, e.g. via: R> install.packages("r2mlwin", + repos = "http://cran.r-project.org") & supporting info on Centre for Multilevel Modelling website: http://www.bristol.ac.uk/cmm/software/r2mlwin/ includes link to log files of demo runs Leaflets available at the front too