Monolix
Auto Light Dark
Auto Light Dark

Epilepsy attacks data set

Download data set: epilepsy.csv

This data set has been originally published in:

Leppik, IE. et al. (1985) A double-blind crossover evaluation of progabide in partial seizures. Neurology 35, 285.

The data arose from a clinical trial of 59 epileptics who were randomized to receive either the anti-epileptic drug progabide or a placebo, as an adjuvant to standard chemotherapy. The hope was that progabide would help to reduce the number of seizures experienced by patients. Patients attended four successive post-randomisation clinic visits, where the number of seizures that occurred over the previous 2 weeks was reported. At baseline, information on the age of the patient and the 8-week pre-randomisation seizure count was recorded.

Below is an extract of the data set:

The columns have the following meaning:


Monolix data tab extract of the epilepsy data set with columns treatment as categorical covariate, base and age as continuous covariates, seizure_rate as discrete observation, period as time and subject as ID. Rows show subjects 1 to 3 on placebo with base 11 or 6, age 31, 30 or 25, and seizure counts between 2 and 5 over periods 1 to 4.


  • treatment: factor with levels placebo progabide indicating whether the anti-epilepsy drug Progabide has been applied or not, column-type CATEGORICAL COVARIATE.

  • base: number of epileptic attacks recorded during 8 week period prior to randomization, column-type CONTINUOUS COVARIATE.

  • age: age of the patients, column-type CONTINUOUS COVARIATE.

  • seizure_rate: number of epilepsy attacks patients have during the follow-up period, column-type OBSERVATION.

  • period: measurement period, column-type TIME.

  • subject: patient identification number, column-type ID.

Several points can be noticed:

  1. There are several seizure counts for each individual, thus the time allows to define to which period it is related.

  2. ID and TIME column are mandatory. Thus, if there is only one count measurement by individual, an additional column with TIME should be added (full of 0 for example).

  3. The covariates columns (treatment, base and age) are filled with the same value for each individual. Covariates must be constant within subjects (or subject-occasions when occasions are defined).


Spaghetti plot of seizure_rate versus time for all patients over periods 1 to 4. Most counts lie between 0 and about 30. A few individuals stand out, one starting at about 102 and decreasing to about 63, and another jumping to about 76 at period 3.


Moreover, we can split by the covariate treatment and thus see the impact of the treatment


Spaghetti plots of seizure_rate versus time over periods 1 to 4, split by treatment into Progabide on the left and placebo on the right. Most Progabide patients stay below about 20 seizures, apart from one outlier near 102 at period 1. Placebo patients reach about 40, with one peak near 76 at period 3.


It seems the the subjects with the treatment have lower seizure rate. We can also display it grouped and not in a spaghetti display as in the following


Stacked bar charts of the number of individuals per seizure_rate value at periods 1 to 4, split by Progabide with 31 patients and placebo with 28 patients. Colors encode seizure counts from 0 to 102. Progabide bars contain more individuals with low counts at the bottom, such as about 5 to 6 with 0 seizures at periods 3 and 4, suggesting the treatment is effective.


Using that, we have a better understanding of the seizure_rate, and it seems that the treatment is effective.

Last updated: