The table below contains R-scripts corresponding to the examples and exercises in Ulf Olssons book, Generalized linear Models - An Applied Approach, (2002) published by Studentlitteratur, www.studenterlitteratur.se. The examples and exercises as they appear in the book are in SAS. Olsson kindly approved of the seminar and of the making of the R-scripts.

The R-scripts are designed for the internal seminar at Informatis and Mathematical Modelling (IMM) at the Tehnical University of Denmark to be held spring 2006.

How to run the scripts:

Download and install the program (it is free and you can get it from http://www.r-project.org/), then download the R scripts you are interested in from below and run them from within R. The scripts will download the data if you are running R on a computer with a online internet connection, otherwise you will have to download the scripts manually and modify the code.

 

 
Chapter
Data
R scripts
1. General linear models Example1.1.txt
Example1.2.txt
Example1.3.txt
Example1.4.txt
Example1.5.txt

Exercise1.1.txt
Exercise1.2.txt
Exercise1.3.txt
Exercise1.4.txt
Example1.1
Example1.2
Example1.3
Example1.4
Example1.5

Exercise1.1
Exercise1.2
Exercise1.3
Exercise1.4
2. Generalized linear models Example2.7.txt

Exercise2.3.txt
Example2.7

Exercise2.3
3. Model diagnostics   Exercise3.1
Exercise3.2
Exercise3.3
4. Models for continuous data Example4.1.txt

Exercise4.1.txt
Exercise4.2.txt

Example4.1

Exercise4.1
Exercise4.2
5. Binary and binomial response variables Example5.1.txt

Example5.3.txt
Example5.4.txt
Example5.5.txt

Exercise5.1.txt
Exercise5.2.txt
Exercise5.3.txt
Example5.1
Example5.2
Example5.3
Example5.4
Example5.5

Exercise5.1
Exercise5.2
Exercise5.3
6. Response variables as counts Example6.1.txt

Example6.3.txt
Example6.4.txt
Example6.5.txt
Example6.6.txt
Example6.7.txt
Example6.8.txt



Exercise6.1.txt
Exercise6.2.txt
Exercise6.3.txt

Exercise6.6.txt
Exercise6.7.txt

Example6.2
Example6.3
Example6.4
Example6.5
Example6.6
Example6.7
Example6.8
Example6.9
Example6.10

Exercise6.1
Exercise6.2
Exercise6.3

Exercise6.6
Exercise6.7
7. Ordinal response Example7.1.txt

Example7.3.txt

Exercise7.1.txt
Exercise7.2.txt

Example7.2
Example7.3

Exercise7.1
Exercise7.2
8. Additional topics
Example8.2.txt
Example8.3.txt
Example8.4.txt
Example8.5.txt

Exercise8.1.txt
Exercise8.2.txt
Exercise8.3.txt
Example8.1
Example8.2
Example8.3
Example8.4
Example8.5

Exercise8.1
Exercise8.2
Exercise8.3

The scripts are not all written yet, but when they are available, the table will be finished.



Comments and ideas for improvements of this page or the contents of it are most welcome, please mail me at rhbc (a) imm.dtu.dk. Also if you have questions regarding the scripts you are welcome to sent me an email.

This site was last updated 20-09-06.