Three category multinomial model with a covariate

For this example, a completed project will be used as an illustration.

This example shows a three category multinomial model with a covariate, run with three different engines: QRPEM, Laplace, and AdaptiveGaussianQuadrature. This project illustrates how to con­struct such a model with the simple LL statement. It also demonstrates that the accurate methods (QRPEM and AGQ) get virtually identical and “correct” results, in good agreement with the simulation that created the data set, while the approximate method (Laplacian) gets relatively poor results that are quite different.

Information about the example data

  1. Select File > Load Project to open an existing Phoenix project.

  2. In the Load Project dialog, navigate to …\Examples\NLME.

  3. Select Multinomial_3cat_with_covariates.phxproj and click Open.

The data set consists of simulated data from a multinomial categorical model, where the observations are either y=0,1, or 2 and represent a category. The probability of an observation being a particular category is a function of four structural parameters th1, th2, th4, and th5 as follows:

Prob(y=0)=ilogit(th1+th4*PER+th5*DOSE)
Prob(y=1)=ilogit(th1+th4*PER+th5*DOSE+th2) – Prob(category=0)
Prob(y= 2)=1 – (Prob(y=1)+Prob(y=0))

Here ilogit(x)=exp(x)/(1+exp(x)) is an increasing function of its argument.

The covariate PER (period) can take the value zero or one and can vary within an individual on differ­ent occasions. Similarly, the covariate DOSE ranges from zero to 30 and can vary within an individual.

The four structural parameters have the form th1=tvth1+nh1, th2=tvth2, th4=tvth4, and th5=tvth5, where nh1 is a N(0,20) random effect associated with th1 and the nominal values of the fixed effects are: tvth1=10, tvth2=1.5, tvth4= –5, tvth5= –0.01. (These nominal values, along with the N(0,20) distri­bution for nh1, were used to simulate the data).

Project workflows and objects

The techniques for constructing such a multinomial model are discussed previously in the example “Logistic regression modeling in Phoenix”.

Here the focus is on the very different results from three different types of methods depending on whether the method uses an low or high accuracy likelihood approximation.

There are three workflows in the model, as well as a Model Comparison object. The workflows corre­spond to running exactly the same model with the QRPEM engine, a Laplacian engine, and an adap­tive Gaussian quadrature engine with 21 integration points along the one-dimension random effect nh1 axis.

Note that Laplacian can be considered a special case of AGQ where only one integration point is used. In fact, the only difference between the Laplacian and AGQ21 workflows is that in the N AGQ box in the Run Options tab, the value is set to 21 for AGQ21 and to 1 for Laplacian.

Results

The results are summarized in the table below (most values are shown rounded to the nearest hun­dredth):

threecatsummary.png 

These three engines use different methods to approximate -2LL. So -2LL values cannot be used to determine which engine is better than the others. From the table above, we can see that QRPEM and AGQ21 get very good (close to nominal) estimates for all fixed effects, while the Laplacian is signifi­cantly poorer on all but Tvth5. Finally, the single random effect parameter is Omega and is estimated very well (close to the nominal value of 20) by QRPEM and AGQ21, whereas the Laplacian estimate is very poor.


Last modified date:7/9/20
Certara USA, Inc.
Legal Notice | Contact Certara
© 2020 Certara USA, Inc. All rights reserved.