An MLwiN model run via the MCMC estimation method is represented by an "mlwinfitMCMC" object
Computes the number of complete observations.
Total number of cases.
For each higher level of a multilevel model, returns the number of units at that level, together with the minimum, mean and maximum number of lower-level units nested within units of the current level.
An integer specifying length of the burn-in.
An integer specifying number of MCMC chains run.
An integer specifying the number of iterations after burn-in.
A vector specifying the type of distribution to be modelled, which can include
'Multivariate Normal', or
A formula object (or a character string) specifying a multilevel model.
A character string (vector) of the specified level ID(s).
A list of contrast matrices, one for each factor in the model.
A list of levels for the factors in the model.
A vector which sets-up measurement errors on predictor variables.
A list of objects specified for factor analysis, including
A list of objects specified for cross-classified and/or multiple membership models, including
Displays the fixed part estimates.
Displays the random part estimates.
Displays a covariance matrix of the fixed part estimates.
Displays a covariance matrix of the random part estimates.
Captures the MCMC chains from MLwiN for all parameters.
Calculates the CPU time used for fitting the model.
Bayesian Deviance Information Criterion (DIC)
The matched call.
The deviance statistic (-2*log(like)).
fact is not empty, then the factor loadings are returned.
fact is not empty, then the factor loading standard deviationss are returned.
fact is not empty, then factor covariances are returned.
fact is not empty, then factor covariance standard deviations are returned.
fact is not empty, then the factor chains are returned.
dami is one then the mean complete response variable
y is returned for each chain, if
dami is two then the SD is also included.
dami is zero, then a list of completed datasets containing complete response variable
y is returned.
TRUE, then the residual estimates at all levels are returned.
resi.store.levs is not empty, then the residual chains at these levels are returned.
The MLwiN version used to fit the model
The data.frame that was used to fit the model.
An instance is created by calling function
Zhang, Z., Charlton, C.M.J., Parker, R.M.A., Leckie, G., and Browne, W.J. (2016) Centre for Multilevel Modelling, University of Bristol.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
## Not run: library(R2MLwiN) # NOTE: if MLwiN not saved in location R2MLwiN defaults to, specify path via: # options(MLwiN_path = 'path/to/MLwiN vX.XX/') # If using R2MLwiN via WINE, the path may look like this: # options(MLwiN_path = '/home/USERNAME/.wine/drive_c/Program Files (x86)/MLwiN vX.XX/') ## Example: tutorial data(tutorial, package = "R2MLwiN") (mymodel <- runMLwiN(normexam ~ 1 + standlrt + (1 + standlrt | school) + (1 | student), estoptions = list(EstM = 1), data = tutorial)) ##summary method summary(mymodel) ##BDIC slot mymodel@BDIC ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.