Monolix
Auto Light Dark
Auto Light Dark

Respiratory status data set

Download data set: respiratory.csv

In this data set, 111 patients have been administrated a placebo or an active treatment. At randomization and at four visits during the treatment, their respiratory status was determined as being “poor” or “good”, which constitutes the categorical output. Covariates such as center, sex and age were also recorded. The goal was to evaluate the effect of the treatment on the respiratory status.
This data set has been originally published in:

Davis, C. S. (1991). Semi-parametric and non-parametric methods for the analysis of repeated measurements with applications to clinical trials. Statistics in Medicine, 10(12), 1959–80

Below we show a snapshot of the data set:


Table snapshot of the respiratory data set with columns subject, month, statusInteger, status, treatment, sex, age and centre. Subject 1, a 46 year old female on placebo, is poor, coded 0, at months 0 to 4. Subject 12, a 14 year old female on treatment, is poor at month 0, good, coded 1, at months 1 to 3, and poor again at month 4.


In MonolixSuite, the output categories must be coded as integers. Thus, we have created the column statusInteger where the respiratory status is coded as 0 for “poor” and 1 for “good”. For individual 1 on placebo, the respiratory status is poor at randomization and remains so during the 4 months. For individual 12 on treatment, the respiratory status is poor at randomization and improves to good during the first three months before deteriorating again to poor at month 4.

The definition of the columns is the following:

  • subject: patient identifier, column-type ID.

  • month: month after treatment start, column-type TIME

  • statusInteger: respiratory status coded as integer, 0 for “poor” and 1 for “good”, column-type OBSERVATION.

  • status: respiratory status coded as strings “poor” and “good”, column to be ignored

  • treatment: type of treatment, active or placebo, column-type CATEGORICAL COVARIATE.

  • sex: sex of the patient, female or name, column-type CATEGORICAL COVARIATE.

  • age: age of the patient (in years), column-type CONTINUOUS COVARIATE.

  • centre: index of the study center, 1 or 2, column-type CATEGORICAL COVARIATE.

The representation of statusInteger with respect to time is proposed on the following figure


Stacked bar chart of the number of individuals per statusInteger category at time 0 to 4 months, 111 individuals per bar. Dark blue is 0, poor, and light blue is 1, good. About 61 individuals are poor at time 0, about 46 at months 1 and 3, about 51 at month 2 and about 52 at month 4.


Several points can be noticed:

  1. The categories must be coded as integers.

  2. There are respiratory status measures for each individual, the month column allows to define at which time the measures were done.

  3. ID and TIME column are mandatory. Thus, even when there is only one measurement per individual, an additional column with TIME should be added (full of 0 for example).

  4. Covariates must be constant within subjects (or subject-occasions when occasions are defined).

  5. In this example, two categories are present (“good” and “poor”), but any number of categories is possible.

When loading this data set into Datxplore, one can easily visualize the number of individuals with “poor” (coded as 0, in dark blue) or “good” (coded as 1, in light blue) respiratory status over time in the case of placebo (left) or active treatment (right):


Datxplore stacked bar charts of the number of individuals with poor, 0 in dark blue, or good, 1 in light blue, respiratory status at times 0 to 4, split by treatment. In the placebo panel about 29 to 35 of 57 stay poor at every time. In the treatment panel poor drops from about 30 at time 0 to about 15 to 20 afterwards, suggesting the treatment is effective.


Based on this figure, it seems that the treatment is efficient a priori. We can additionally look at the other covariates and the impact on the output. One can split by sex as can be seen on the following figure.


Datxplore stacked bar charts of poor, 0 in dark blue, and good, 1 in light blue, respiratory status at times 0 to 4, split by sex. The female panel has about 88 individuals with about 34 to 47 poor, and the male panel about 23 individuals with about 11 to 14 poor. The pattern over time is similar in both, so sex seems to have little influence.


In that case, the sex covariate seems not to influence a lot the output.

Last updated: