Package: R2MLwiN 0.8-10

Zhengzheng Zhang

R2MLwiN: Running 'MLwiN' from Within R

An R command interface to the 'MLwiN' multilevel modelling software package.

Authors:Zhengzheng Zhang [aut, cre], Chris Charlton [aut], Richard Parker [aut], George Leckie [aut], William Browne [aut]

R2MLwiN_0.8-10.tar.gz
R2MLwiN_0.8-10.zip(r-4.5)R2MLwiN_0.8-10.zip(r-4.4)R2MLwiN_0.8-10.zip(r-4.3)
R2MLwiN_0.8-10.tgz(r-4.4-any)R2MLwiN_0.8-10.tgz(r-4.3-any)
R2MLwiN_0.8-10.tar.gz(r-4.5-noble)R2MLwiN_0.8-10.tar.gz(r-4.4-noble)
R2MLwiN_0.8-10.tgz(r-4.4-emscripten)R2MLwiN_0.8-10.tgz(r-4.3-emscripten)
R2MLwiN.pdf |R2MLwiN.html
R2MLwiN/json (API)
NEWS

# Install 'R2MLwiN' in R:
install.packages('R2MLwiN', repos = c('https://r-forge.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://r-forge.r-project.org/projects/r2mlwin

Datasets:
  • alevchem - Chemistry A-level results from one exam board
  • bang - Sub-sample from the 1989 Bangladesh Fertility Survey
  • bang1 - Sub-sample from the 1989 Bangladesh Fertility Survey
  • bes83 - Subsample from British Election Study, '83.
  • cvd - Data from the 1998 Scottish Health Survey on cardiovascular disease status of 8804 respondents
  • diag1 - Examination dataset
  • fysio - Data on physiotherapy referrals from 100 general practices in the Netherlands, collected in 1987
  • gcsecomp1 - Pupils' marks from GCSE exams (UK, 1989); complete cases only.
  • gcsemv1 - Pupils' marks from GCSE exams (UK, 1989).
  • height - Height data.
  • hungary1 - Hungarian component of 2nd International Science Survey, '84; see Goldstein 2003
  • jspmix1 - Dataset of pupils' test scores, a subset of the Junior School Project.
  • lips1 - Lips data
  • lmdp - Details of deaths from all causes in England and Wales 1972-1992, taken from the local mortality datapack
  • mmmec - EC data on UV radiation exposure & malignant melanoma.
  • rats - Weights of 30 rats, measured weekly over 5 weeks.
  • reading1 - Students' reading attainment in inner London infant schools.
  • tutorial - Exam results for six inner London Education Authorities
  • wage1 - Simulated dataset of office workers' salary and other employment details.
  • xc - Examination scores of 16-year olds in Fife, Scotland.
  • xc1 - Examination scores of 16-year olds in Fife, Scotland.

On CRAN:

5.60 score 123 scripts 374 downloads 12 mentions 20 exports 46 dependencies

Last updated 22 days agofrom:cd6c385df3. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 30 2024
R-4.5-winNOTEOct 30 2024
R-4.5-linuxNOTEOct 30 2024
R-4.4-winNOTEOct 30 2024
R-4.4-macNOTEOct 30 2024
R-4.3-winNOTEOct 30 2024
R-4.3-macNOTEOct 30 2024

Exports:caterpillarcaterpillarRcoefdf2matrixdouble2singlePrecisionextractlogLikmatrix2dfmlwin2bugspredCurvespredLinesrunMLwiNshowsixwaysummarytrajectoriesUntoggleupdatevcovws2foreign

Dependencies:askpassbackportsbroomclicodacodetoolscpp11curldata.tabledigestdoParalleldoRNGdplyrfansiforeachforeigngenericsgluehttriteratorsjsonlitelatticelifecyclemagrittrMASSMatrixmemiscmimeopensslpillarpkgconfigpurrrR6rlangrngtoolsstringistringrsystexregtibbletidyrtidyselectutf8vctrswithryaml

Readme and manuals

Help Manual

Help pageTopics
Extract or Replace parts of "mlwinfitIGLS" objects[,mlwinfitIGLS,ANY,ANY,ANY-method [<-,mlwinfitIGLS,ANY,ANY,ANY-method [[,mlwinfitIGLS-method [[<-,mlwinfitIGLS-method
Extract or Replace parts of "mlwinfitMCMC" objects[,mlwinfitMCMC,ANY,ANY,ANY-method [<-,mlwinfitMCMC,ANY,ANY,ANY-method [[,mlwinfitMCMC-method [[<-,mlwinfitMCMC-method
Chemistry A-level results from one exam boardalevchem
Augment data frame with information derived from the model fit (broom package).augment.mlwinfitIGLS
Augment data frame with information derived from the model fit (broom package).augment.mlwinfitMCMC
Sub-sample from the 1989 Bangladesh Fertility Survey (see Huq & Cleveland, 1990)bang
Sub-sample from the 1989 Bangladesh Fertility Surveybang1
Calculates Brooks-Draper diagnosticBD
Subsample from British Election Study, '83.bes83
Draws a caterpillar plot (in MLwiN style).caterpillar
Draws caterpillar plots of the residuals from a mlwinfitIGLS-class or mlwinfitMCMC-class object, at a chosen level of the multilevel model.caterpillarR
Extract the coefficient vector from "mlwinfitIGLS" objectscoef,mlwinfitIGLS-method
Extract the coefficient vector from "mlwinfitMCMC" objectscoef,mlwinfitMCMC-method
Extract the coefficient vector from "mlwinfitIGLS" objectscoef.mlwinfitIGLS
Extract the coefficient vector from "mlwinfitMCMC" objectscoef.mlwinfitMCMC
Data from the 1998 Scottish Health Survey on cardiovascular disease status of 8804 respondentscvd
Returns the deviance from "mlwinfitIGLS" objects.deviance.mlwinfitIGLS
Returns the residual degrees-of-freedom extracted from "mlwinfitIGLS" objects.df.residual.mlwinfitIGLS
Translates a data.frame, formatted for use in multiple membership modelling in MLwiN, to a matrix.df2matrix
Examination datasetdiag1
Converts numerical values from double precision to single precision.double2singlePrecision
Extract coefficients and GOF measures from a statistical object (texreg package).extract,mlwinfitIGLS-method
Extract coefficients and GOF measures from a statistical object.extract,mlwinfitMCMC-method
Returns the fitted values from "mlwinfitIGLS" objects.fitted.mlwinfitIGLS
Returns the fitted values from "mlwinfitMCMC" objects.fitted.mlwinfitMCMC
"mlwinfitIGLS" model formulaformula.mlwinfitIGLS
"mlwinfitMCMC" model formulaformula.mlwinfitMCMC
An internal function to translate an R formula into an R list object.Formula.translate
An internal function, allowing back-compatibility, which translates a model formula from a formula object or character string into an R list object.Formula.translate.compat
Data on physiotherapy referrals from 100 general practices in the Netherlands, collected in 1987fysio
Pupils' marks from GCSE exams (UK, 1989); complete cases only.gcsecomp1
Pupils' marks from GCSE exams (UK, 1989).gcsemv1
Extract coefficients and GOF measures from a statistical object (memisc package).getSummary.mlwinfitIGLS
Extract coefficients and GOF measures from a statistical object (memisc package).getSummary.mlwinfitMCMC
Extract GOF measures from a statistical object (broom package).glance.mlwinfitIGLS
Extract GOF measures from a statistical object (broom package).glance.mlwinfitMCMC
Height data.height
Hungarian component of 2nd International Science Survey, '84; see Goldstein 2003hungary1
Dataset of pupils' test scores, a subset of the Junior School Project.jspmix1
Lips datalips1
Details of deaths from all causes in England and Wales 1972-1992, taken from the local mortality datapacklmdp
Returns the log-likelihood from "mlwinfitIGLS" objects.logLik,mlwinfitIGLS-method
Returns the log-likelihood from "mlwinfitIGLS" objects.logLik.mlwinfitIGLS
For multiple membership models, translates matrix into a data.frame formatted for MLwiN Translates a 'matrix' into a form usable by MLwiN for multiple membership models, namely a 'data.frame' with (a) columns containing membership IDs (if first row matrix is '0 1 1 0 1 1', then first row of generated ID vectors would be, say, '2, 3, 5, 6') and (b) columns containing weights (in this example, if 'standardise = TRUE', then first row of generated weight vectors would be, say, '0.25, 0.25, 0.25, 0.25', otherwise first row of generated weight vectors would be, say, '1, 1, 1, 1').matrix2df
Calculates the estimated Monte Carlo standard error (MCSE)MCSE
This function captures output files from MLwiN for estimation in WinBUGS/OpenBUGS.mlwin2bugs
An S4 class that stores the outputs of the fitted IGLS model.mlwinfitIGLS-class
An S4 class that stores the outputs of the fitted MCMC model.mlwinfitMCMC-class
EC data on UV radiation exposure & malignant melanoma.mmmec
Returns the number of used observations from "mlwinfitIGLS" objects.nobs.mlwinfitIGLS
Returns the number of used observations from "mlwinfitMCMC" objects.nobs.mlwinfitMCMC
Draws predicted curves (lines) using estimates from the fixed part of a fitted model.predCurves
Returns the predicted data from "mlwinfitIGLS" objects.predict.mlwinfitIGLS
Returns the predicted data from "mlwinfitMCMC" objects.predict.mlwinfitMCMC
Draws predicted lines using a fitted model objectpredLines
Summarize "mlwinfitIGLS" objectsprint.mlwinfitIGLS
Summarize "mlwinfitMCMC" objectsprint.mlwinfitMCMC
Translates informative prior information into a concise MLwiN macro.prior2macro
Weights of 30 rats, measured weekly over 5 weeks.rats
Students' reading attainment in inner London infant schools.reading1
Returns the residual data from "mlwinfitIGLS" objects.residuals.mlwinfitIGLS
Returns the residual data from "mlwinfitMCMC" objects.residuals.mlwinfitMCMC
Calls MLwiN from R.runMLwiN
Show objects of class "mlwinfitIGLS"show,mlwinfitIGLS-method
Show objects of class "mlwinfitMCMC"show,mlwinfitMCMC-method
Summarize "mlwinfitIGLS" objectsshow.mlwinfitIGLS
Summarize "mlwinfitMCMC" objectsshow.mlwinfitMCMC
Draws a sixway plot of MCMC diagnostics.sixway
Summarize "mlwinfitIGLS" objectssummary,mlwinfitIGLS-method
Summarize "mlwinfitMCMC" objectssummary,mlwinfitMCMC-method
Summarize "mlwinfitIGLS" objectssummary.mlwinfitIGLS
Summarize "mlwinfitMCMC" objectssummary.mlwinfitMCMC
Summarises information about the components of a model from a statistical object (broom package).tidy.mlwinfitIGLS
Summarises information about the components of a model from a statistical object (broom package).tidy.mlwinfitMCMC
Plots MCMC chain trajectoriestrajectories
Exam results for six inner London Education Authoritiestutorial
Converts a categorical variable into several separate binary variablesUntoggle
Update "mlwinfitIGLS" objectsupdate,mlwinfitIGLS-method
Update "mlwinfitMCMC" objectsupdate,mlwinfitMCMC-method
Update "mlwinfitIGLS" objectsupdate.mlwinfitIGLS
Update "mlwinfitMCMC" objectsupdate.mlwinfitMCMC
Extract the approximate variance-covariance matrix from "mlwinfitIGLS" objectsvcov,mlwinfitIGLS-method
Extract the approximate variance-covariance matrix from "mlwinfitMCMC" objectsvcov,mlwinfitMCMC-method
Extract the approximate variance-covariance matrix from "mlwinfitIGLS" objectsvcov.mlwinfitIGLS
Extract the approximate variance-covariance matrix from "mlwinfitMCMC" objectsvcov.mlwinfitMCMC
Simulated dataset of office workers' salary and other employment details.wage1
Writes MLwiN macros to fit models using the iterative generalized least squares (IGLS) algorithm.write.IGLS
Writes MLwiN macros to fit models using Markov chain Monte Carlo (MCMC) methodswrite.MCMC
Converts data from one format to another within MLwiNws2foreign
Examination scores of 16-year olds in Fife, Scotland.xc
Examination scores of 16-year olds in Fife, Scotland.xc1