Running a random components mixed model in XLSTAT

Dataset for Mixed models XLS35.5 KB

Tutorial video
  • Pro Core statistical software

  • System configuration

    • Windows:
      • Versions: 9x/Me/NT/2000/XP/Vista/Win 7
      • Excel: 97 and later
      • Processor: 32 or 64 bits
      • Hard disk: 150 Mb
    • Mac OS X:
      • OS: OS X
      • Excel: X, 2004 and 2011
      • Hard disk: 150Mb.

Benefits

  • Easy and user-friendly
    Easy and user-friendly XLSTAT is flawlessly integrated with Microsoft Excel which is the most popular spreadsheet worldwide. This integration makes it one of the simplest available tools to work with as it utilizes the same philosophy as Microsoft Excel. The program is accessible in a dedicated XLSTAT tab. The analyses are grouped into functional menus. The dialog boxes are user-friendly and setting up an analysis is straightforward.
  • Data and results shared seamlessly
    Data and results shared seamlessly One of the greatest advantages of XLSTAT is the way you can share data and results seamlessly. As the results are stored in Microsoft Excel, anyone can access them. There is no need for the receiver to have an XLSTAT license or any additional viewer which makes your team-work easier and more affordable. In addition, results are easily integrable into other Microsoft Office software such as PowerPoint, so that you can create striking presentation in minutes.
  • Modular
    Modular XLSTAT is a modular product. XLSTAT-Pro is a core statistical module of XLSTAT which includes all the mainstream functionalities in statistics and multivariate analysis. More advanced features contained in add-on modules can be added for specific applications. This way you can adapt the software to your needs making the software more cost-efficient.
  • Didactic
    Didactic The results of XLSTAT are organized by analysis and are easy to navigate. Moreover useful information is provided along with the results to assist you in your interpretation.
  • Affordable
    Affordable XLSTAT is a complete and modular analytical solution that can suit any analytical business needs. It is very reasonably priced so that the return of your investment is almost immediate. Any XLSTAT license comes with top level support and assistance.
  • Accessible - Available in many languages
    Accessible - Available in many languages We have ensured XLSTAT is accessible to everyone by making the program available in many languages, including Chinese, English, French, German, Italian, Japanese, Polish, Portuguese and Spanish.
  • Automatable and customizable
    Automatable and customizable Most of the statistical functions available in XLSTAT can be called directly from the Visual Basic window of Microsoft Excel. They can be modified and integrated to more code to fit to the specificity of your domain. Adding tables and plots as well as modifying existing outputs becomes easy. Furthermore, XLSTAT includes some special tools on the dialog boxes to generate automatically the VBA code in order to reproduce your analysis using the VBA editor or to simply load pre-set settings. This effortless automation of routine analysis will be a huge time saver on your part.

Dataset for running a random components mixed model

An Excel sheet with both the data and the results can be downloaded by clicking here.

We use a dataset coming from Mendenhall, Wackerly and Schaeffer (1996, Mathematical Statistics with Applications, Duxbury Press). In this example, ingots made up of various metals are studied. We seek to know the impact of the treated ingot and the type of metal being used as bond in this ingot (N: nickel, I: iron and C: copper) on the necessary pressure to break it into two. We have 7 ingots, three types of bonds and a dependent variable. The treated ingots are drawn from a larger population and thus constitute a random factor in our model.

A mixed linear model is based on the same model as a traditional linear model with a term associated with the random effects. The model will have the following form: MIXEDeq.gif

In our case, Y is the press variable, X is the bond (fixed factor) and Z is the ingot (random factor). Moreover, we can choose the structure of the covariance matrix of the random effects. We will choose a structure called “variance component” which is based on a diagonal matrix. Please consult the help of XLSTAT for more details on covariance structure.

Setting up a random components mixed model

After opening XLSTAT, select the XLSTAT / Modeling data / Mixed models command, or click on the corresponding button of the Modeling data toolbar (see below).

MIXED1e.gif

Once you've clicked on the button, the mixed model dialog box appears.

Select the data on the Excel sheet.

The Dependent variable (or variable to model) is here the "pressure".

Our aim is to determine the effect of the bond and of the ingot on the variability of the pressure.

As we selected the column title for the variables, we left the option Variable labels activated.

MIXED2e.gif

We left the constraint option at an=0, meaning that we want the model to be built on the assumption that the copper has the standard effect on the pressure.

When dealing with qualitative variables, although you have to apply a constraint to the model in ANOVA for theoretical reasons, it will not affect the results (goodness of fit). The only difference it makes is in the actual writing of the model.

The covariance structure selected is the default one which is variance component.

MIXED3e.gif

Once you have clicked on the OK button, a dialog box is displayed so that you can choose which factors have to be taken into account in the model. The fixed effect is the "metal" and the random effect is the "ingots".

MIXED4e.gifNote: A factor cannot be random and fixed.

Once you have clicked on the “OK” button, the computation starts. The results will then be displayed.

Interpreting the results of a random components mixed model

The first results displayed by XLSTAT are the goodness of fit coefficients.

MIXED5e.gif

Model parameters are obtained using the restricted maximum likelihood (REML) method and will be different as when a classical linear model is applied. All indexes are used to compare models with different covariance structures.

Covariance parameters tables are then displayed. The first one is associated to the random components of the model and the second table is associated to the error covariance matrix. In our case as there is no repeated measures, the error covariance matrix is diagonal with one value associated to the variance.

You can display full covariance matrix when selecting G matrix (random component covariance) and R matrix (error covariance) in the output dialog box.

We can see that the error variance is significant and the random component variance is not significant. The random component will not have a significant effect on the global model.

MIXED6e.gif

To understand the effect of fixed effects on the model, we study the Type III tests of fixed effects. We can see that the metal has a significant effect on the model.

MIXED7e.gif

The used metal has a significant effect on the necessary pressure to break the ingot.

When we look at the model parameters (see below), we can see that using iron as bond for the ingot makes a significant increase on the necessary pressure. Using nickel does not make a significant difference.

MIXED8e.gif

When looking at the random effect coefficients, we can see that all coefficients are not significant and thus conclude that the treated ingot has no effect on the model.

MIXED9e.gif

Finally, we can say that the bond is the only factor in the model that has a significant effect on the necessary pressure to break the ingot.

Some other output can be useful and are available in XLSTAT like residuals, residuals charts...