11.07.2015 Views

INTRODUCTION TO STATISTICAL MODELLING IN R

INTRODUCTION TO STATISTICAL MODELLING IN R

INTRODUCTION TO STATISTICAL MODELLING IN R

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 11Poisson regression: some examplesThis exercise shows you use of the Poisson ‘family’ or distribution function forloglinear modelling.Also it shows you use of the ‘sink()’ directive in R.As usual, typing the commands below is a trivial exercise: what YOU must do is tomake sure you understand the purpose of the commands, and that you can interpretthe output.First. The total number of reported new cases per month of AIDS in the UK up toNovember 1985 are listed below(data from A.Sykes 1986).We model the way in which y, the number of cases depends on i, the month number.y

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

Saved successfully!

Ooh no, something went wrong!