| mlwinfitIGLS-class | R Documentation |
An MLwiN model run via the IGLS estimation method is represented by an "mlwinfitIGLS" object
NobsComputes the number of complete observations.
DataLengthTotal number of cases.
HierarchyFor 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.
DA vector specifying the type of distribution to be modelled, which can include 'Normal', 'Binomial' 'Poisson', 'Multinomial', 'Multivariate Normal', or 'Mixed'.
FormulaA formula object (or a character string) specifying a multilevel model.
levIDA character string (vector) of the specified level ID(s).
contrastsA list of contrast matrices, one for each factor in the model.
xlevelsA list of levels for the factors in the model.
FPDisplays the fixed part estimates.
RPDisplays the random part estimates.
FP.covDisplays a covariance matrix of the fixed part estimates.
RP.covDisplays a covariance matrix of the random part estimates.
elapsed.timeCalculates the CPU time used for fitting the model.
callThe matched call.
LIKEThe deviance statistic (-2*log(like)).
ConvergedBoolean indicating whether the model has converged
IterationsNumber of iterations that the model has run for
MethIf Meth = 0 estimation method is set to RIGLS. If Meth = 1 estimation method is set to IGLS.
residualIf resi.store is TRUE, then the residual estimates at all levels are returned.
dataThe data.frame that was used to fit the model.
nonlinearA character vector specifying linearisation method used. The first element specifies marginal quasi-likelihood linearization (N = 0) or penalised quasi-likelihood linearization (N = 1); The second element specifies first (M = 1) or second (M = 2) order approximation.
versionThe MLwiN version used to fit the model
An instance is created by calling function runMLwiN.
Zhang, Z., Charlton, C.M.J., Parker, R.M.A., Leckie, G., and Browne, W.J. (2016) Centre for Multilevel Modelling, University of Bristol.
runMLwiN
## 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),
data = tutorial))
##summary method
summary(mymodel)
##logLik method
logLik(mymodel)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.