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