Skip to content

Mplus

Mplus is a statistical modelling program that offers a wide choice of models, estimators and algorithms. Mplus allows the analysis of both cross-sectional and longitudinal data, single-level and multi-level data, data that come from different populations with either observed or unobserved heterogeneity, and data that contain missing values.

Mplus is available as a module on Apocrita.

Usage

To run the default version of Mplus, simply load the mplus module:

module load mplus
mplus <input_file>

Licensing

To use Mplus you must contact us and provide evidence that you have a licence to use the software.

Example jobs

Serial jobs

Some analyses may utilise multi-threading on the Apocrita serial nodes. If your analysis supports multi-threading (see the user guide for supported analyses), ensure the PROCESSORS = X option is set in the ANALYSIS section of the input file, where X is the number of cores being requested.

The CHAINS option (also in the ANALYSIS section of the input file) is used to specify how many independent Markov chain Monte Carlo (MCMC) chains to use. The default is two. With multiple chains, parallel computing uses one chain per processor. To benefit from multi-threading, specify the number of processors using the PROCESSORS option as described above. Additionally, the number of processors used cannot exceed the number of chains.

defining PROCESSORS and CHAINS

If there are more processors than chains, the number of processors used will be equal to the number of chains. If there are more chains than processors, each processor carries out one chain until it is completed and then the remaining chains are carried out.

Here is an example job running on 1 core and 4GB of memory (without defining PROCESSORS and CHAINS):

#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe smp 1
#$ -l h_rt=1:0:0
#$ -l h_vmem=4G

module load mplus
mplus project.inp

Here is an example job running on 4 cores and 16GB of memory (with correct PROCESSORS and CHAINS definitions):

...
ANALYSIS: PROCESSORS = 4;
          CHAINS = 4;
...
#!/bin/bash
#$ -cwd
#$ -j y
#$ -pe smp 4
#$ -l h_rt=1:0:0
#$ -l h_vmem=4G

module load mplus
mplus project.inp

References