Sunday, December 22, 2013
Poisson regression, 2013
Hi,
These are materials for Poisson regression course, 2013. This year I use R version 3.0.2.
montana.dat
montana.dta
docsmoke.dat
docsmoke.dta
welsh.dat
welsh.dta
The functions for Poisson regression are within ice package.
The module can be downloaded here.
Poisson1212.pdf
You can also download ICE modules from ice and epid. However, they are not necessary for this session.
Finally, you can follow my R script file below. Don't forget to change working directory to yours.
poisson.R
Logistic regression II, 2013, Conditional logistic regression
Hi,
These are materials for logistic regression course II: Conditional logistic regression, 2013. This year I use R version 3.0.2 and the regression outputs are not different from the 2012 version where R version 2.15.2 was used.
Conditional logistic regression requires library survival that already exists on your R library folder. Just call library(survival) or require(survival) and you are ready to use clogit function.
agechd.dta
cca-match.dta
The module can be downloaded here.
logistic1212-2.pdf
The required modules for this course are ice and epid which can be installed into R by typing the following two lines on your R console.
install.packages("ice",repos="http://r-ice-project.net")
install.packages("epid",repos="http://r-ice-project.net")
In this session, we are going to use multilevel logistic regression (glmer) in dealing with data stratified by age group as if the stratification is a matching condition. This method is recently used by some authors. Then we need another package from CRAN called "lme4". You can install the package by typing the following line on your R console.
install.packages("lme4")
(Since the package is installed from CRAN or its mirror, a repos argument is not required.)
Finally, you can follow my R script file below. Don't forget to change working directory to yours.
conditional1.R
Logistic regression I, 2013
Hi,
These are materials for logistic regression course I, 2013. This year I use R version 3.0.2. The outputs of R are the same as with the previous versions of R.
For the exercises in the module, download the following files.
anc.dta
agechd.dta
cca.dta
lowbwt.dta
The revised module can be downloaded here.
logistic1212-1.pdf
The required modules for this course are ice and epid which can be installed into R by typing the following two lines on your R console.
install.packages("ice", repos = "http://r-ice-project.net")
install.packages("epid", repos = "http://r-ice-project.net")
Finally, you can try following my R script file. Please change the working directory to yours, otherwise the script will not run correctly.
exercises.R
These are materials for logistic regression course I, 2013. This year I use R version 3.0.2. The outputs of R are the same as with the previous versions of R.
For the exercises in the module, download the following files.
anc.dta
agechd.dta
cca.dta
lowbwt.dta
The revised module can be downloaded here.
logistic1212-1.pdf
The required modules for this course are ice and epid which can be installed into R by typing the following two lines on your R console.
install.packages("ice", repos = "http://r-ice-project.net")
install.packages("epid", repos = "http://r-ice-project.net")
Finally, you can try following my R script file. Please change the working directory to yours, otherwise the script will not run correctly.
exercises.R
Subscribe to:
Posts (Atom)