11.07.2015 Views

Preface to First Edition - lib

Preface to First Edition - lib

Preface to First Edition - lib

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ANALYSIS USING R: GEE 245R> layout(matrix(1:2, nrow = 1))R> ylim boxplot(log(seizure.rate + 1) ~ period, data = placebo,+ main = "Placebo", ylab = "Log number of seizures",+ xlab = "Period", ylim = ylim)R> boxplot(log(seizure.rate + 1) ~ period, data = progabide,+ main = "Progabide", ylab = "Log number of seizures",+ xlab = "Period", ylim = ylim)PlaceboProgabideLog number of seizures0 1 2 3 4Log number of seizures0 1 2 3 41 2 3 4Period1 2 3 4PeriodFigure 13.8Boxplots of log of numbers of seizures in each two-week period postrandomisation for placebo and active treatments.of explana<strong>to</strong>ry variables). In our example the observation period is two weeks,so we simply need <strong>to</strong> set log(2) for each observation as the offset.We can now fit a Poisson regression model <strong>to</strong> the data assuming independenceusing the glm function. We also use the GEE approach <strong>to</strong> fit an independencestructure, followed by an exchangeable structure using the followingR code:R> per epilepsy$period names(epilepsy)[names(epilepsy) == "treatment"] fm epilepsy_glm epilepsy_gee1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!