RDocumentation
Moon
Learn R
Search all packages and functions
⚠️
There's a newer version (0.8-9) of this package.
Take me there.
R2MLwiN (version 0.8-2)
Running 'MLwiN' from Within R
Description
An R command interface to the 'MLwiN' multilevel modelling software package.
Copy Link
Copy
Link to current version
Version
Version
0.8-9
0.8-8
0.8-7
0.8-6
0.8-5
0.8-4
0.8-3
0.8-2
0.8-1
0.8-0
0.2-1
0.2-0
0.1-9
0.1-8
0.1-7
0.1-6
0.1-5
0.1-4
0.1-3
0.1-2
0.1-1
0.1-0
Down Chevron
Install
install.packages('R2MLwiN')
Monthly Downloads
446
Version
0.8-2
License
GPL (>= 2)
Homepage
http://www.bristol.ac.uk/cmm/software/r2mlwin/
Maintainer
Zhengzheng Zhang
Last Published
April 12th, 2016
Functions in R2MLwiN (0.8-2)
Search functions
mlwinfitIGLS-class
An S4 class that stores the outputs of the fitted IGLS model.
bes83
Subsample from British Election Study, '83.
R2MLwiN
Running MLwiN from within R
gcsecomp1
Pupils' marks from GCSE exams (UK, 1989); complete cases only.
update,mlwinfitIGLS-method
Update "mlwinfitIGLS" objects
Untoggle
Converts a categorical variable into several separate binary variables
vcov,mlwinfitIGLS-method
Extract the approximate variance-covariance matrix from "mlwinfitIGLS" objects
MCSE
Calculates the estimated Monte Carlo standard error (MCSE)
BD
Calculates Brooks-Draper diagnostic
caterpillarR
Draws caterpillar plots of the residuals from a mlwinfitIGLS-class or mlwinfitMCMC-class object, at a chosen level of the multilevel model.
df.residual,mlwinfitIGLS-method
Returns the residual degrees-of-freedom extracted from "mlwinfitIGLS" objects.
predLines
Draws predicted lines using a fitted model object
formula,mlwinfitMCMC-method
"mlwinfitMCMC" model formula
matrix2df
For multiple membership models, translates matrix into a data.frame formatted for MLwiN
write.IGLS
Writes MLwiN macros to fit models using the iterative generalized least squares (IGLS) algorithm.
trajectories
Plots MCMC chain trajectories
coef,mlwinfitMCMC-method
Extract the coefficient vector from "mlwinfitMCMC" objects
residuals,mlwinfitIGLS-method
Returns the residual data from "mlwinfitIGLS" objects.
fitted,mlwinfitIGLS-method
Returns the fitted values from "mlwinfitIGLS" objects.
fitted,mlwinfitMCMC-method
Returns the fitted values from "mlwinfitMCMC" objects.
deviance,mlwinfitIGLS-method
Returns the deviance from "mlwinfitIGLS" objects.
bang1
Sub-sample from the 1989 Bangladesh Fertility Survey
rats
Weights of 30 rats, measured weekly over 5 weeks.
diag1
Examination dataset
vcov,mlwinfitMCMC-method
Extract the approximate variance-covariance matrix from "mlwinfitMCMC" objects
xc
Examination scores of 16-year olds in Fife, Scotland.
jspmix1
Dataset of pupils' test scores, a subset of the Junior School Project.
prior2macro
Translates informative prior information into a concise MLwiN macro.
alevchem
Chemistry A-level results from one exam board
formula,mlwinfitIGLS-method
"mlwinfitIGLS" model formula
lips1
Lips data
runMLwiN
Calls MLwiN from R.
hungary1
Hungarian component of 2nd International Science Survey, '84; see Goldstein 2003
nobs,mlwinfitMCMC-method
Returns the number of used observations from "mlwinfitMCMC" objects.
bang
Sub-sample from the 1989 Bangladesh Fertility Survey (see Huq & Cleveland, 1990)
df2matrix
Translates a data.frame, formatted for use in multiple membership modelling in MLwiN, to a matrix.
xc1
Examination scores of 16-year olds in Fife, Scotland.
[,mlwinfitIGLS,ANY,ANY,ANY-method
Extract or Replace parts of "mlwinfitIGLS" objects
predict,mlwinfitMCMC-method
Returns the predicted data from "mlwinfitMCMC" objects.
predCurves
Draws predicted curves (lines) using estimates from the fixed part of a fitted model.
nobs,mlwinfitIGLS-method
Returns the number of used observations from "mlwinfitIGLS" objects.
summary,mlwinfitMCMC-method
Summarize "mlwinfitMCMC" objects
[,mlwinfitMCMC,ANY,ANY,ANY-method
Extract or Replace parts of "mlwinfitMCMC" objects
mlwin2bugs
This function captures output files from MLwiN for estimation in WinBUGS/OpenBUGS.
wage1
Simulated dataset of office workers' salary and other employment details.
residuals,mlwinfitMCMC-method
Returns the residual data from "mlwinfitMCMC" objects.
predict,mlwinfitIGLS-method
Returns the predicted data from "mlwinfitIGLS" objects.
summary,mlwinfitIGLS-method
Summarize "mlwinfitIGLS" objects
Formula.translate
An internal function to translate an R formula into an R list object.
caterpillar
Draws a caterpillar plot (in MLwiN style).
coef,mlwinfitIGLS-method
Extract the coefficient vector from "mlwinfitIGLS" objects
mlwinfitMCMC-class
An S4 class that stores the outputs of the fitted MCMC model.
reading1
Students' reading attainment in inner London infant schools.
sixway
Draws a sixway plot of MCMC diagnostics.
double2singlePrecision
Converts numerical values from double precision to single precision.
tutorial
Exam results for six inner London Education Authorities
gcsemv1
Pupils' marks from GCSE exams (UK, 1989).
Formula.translate.compat
An internal function, allowing back-compatibility, which translates a model formula from a formula object or character string into an R list object.
height
Height data.
logLik,mlwinfitIGLS-method
Returns the log-likelihood from "mlwinfitIGLS" objects.
update,mlwinfitMCMC-method
Update "mlwinfitMCMC" objects
write.MCMC
Writes MLwiN macros to fit models using Markov chain Monte Carlo (MCMC) methods
ws2foreign
Converts data from one format to another within MLwiN
mmmec
EC data on UV radiation exposure & malignant melanoma.