I've been running a glmer logit on a very large data set (600k obs).
Running on a 10% subset works correctly, but for the complete data set,
R completes apparently without error, but does not display the results.
Given these jobs take about 200 hours, it's very hard to make progress
by trial and error.
I append the code and the sample and complete output. As is apparent, I
upgraded R during the complete run, but I recall testing on the
subsample with the earlier version too. I am also assuming that
upgrading R will not affect the running process -- is this true?
I'd be grateful for any leads. In the meantime I'll be running with
larger subsamples!
Regards,
Brendan Halpin
- code ---------------------------------------------------------------
library(arm)
library(foreign)
mlm <- read.dta("../workingdata.dta")
attach(mlm)
gender <- as.factor(stu_gend)
yr <- year - 1998
failure <- (lmer(fail ~
1 + cao + subj1 + subj2 + subj3 + gender + yr + ageentry + as.factor(yrs5)
+ modsize + meancao + depfemr + (1|deptno) + (1|modinst) + (1|ulid) ,
na.action = na.exclude, family = binomial (link="logit")))
display(failure, digits=5, detail=TRUE)
----------------------------------------------------------------------
- output with 10% sample data ----------------------------------------
R version 2.14.0 (2011-10-31)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i486-pc-linux-gnu (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
library(arm)
arm (Version 1.4-13, built: 2011-6-19)
Working directory is /home/brendan/work/mlmmarks/genderECSR
library(foreign)
mlm <- read.dta("../worksample-random1.dta")
attach(mlm)
gender <- as.factor(stu_gend)
yr <- year - 1998
failure <- (lmer(fail ~
Loading required package: MASS
Loading required package: Matrix
Loading required package: lattice
Attaching package: ?Matrix?
The following object(s) are masked from ?package:base?:
det
Loading required package: lme4
Attaching package: ?lme4?
The following object(s) are masked from ?package:stats?:
AIC, BIC
Loading required package: R2WinBUGS
Loading required package: coda
Attaching package: ?coda?
The following object(s) are masked from ?package:lme4?:
HPDinterval
Loading required package: abind
Loading required package: foreign
Attaching package: ?arm?
The following object(s) are masked from ?package:coda?:
traceplot
----------------------------------------------------------------------
- output with complete data ------------------------------------------
R version 2.13.1 (2011-07-08)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i486-pc-linux-gnu (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
library(arm)
arm (Version 1.4-13, built: 2011-6-19)
Working directory is /home/brendan/work/mlmmarks/genderECSR
library(foreign)
mlm <- read.dta("../workingdata.dta")
attach(mlm)
gender <- as.factor(stu_gend)
yr <- year - 1998
failure <- (lmer(fail ~
+ 1 + cao + subj1 + subj2 + subj3 + gender + yr + ageentry + as.factor(yrs5)
+ + modsize + meancao + depfemr + (1|deptno) + (1|modinst) + (1|ulid) , na.action = na.exclude, family = binomial (link="logit")))
Loading required package: MASS
Loading required package: Matrix
Loading required package: lattice
Attaching package: ?Matrix?
The following object(s) are masked from ?package:base?:
det
Loading required package: lme4
Attaching package: ?lme4?
The following object(s) are masked from ?package:stats?:
AIC, BIC
Loading required package: R2WinBUGS
Loading required package: coda
Attaching package: ?coda?
The following object(s) are masked from ?package:lme4?:
HPDinterval
Loading required package: abind
Loading required package: foreign
Attaching package: ?arm?
The following object(s) are masked from ?package:coda?:
traceplot
----------------------------------------------------------------------
Brendan Halpin, Department of Sociology, University of Limerick, Ireland
Tel: w +353-61-213147 f +353-61-202569 h +353-61-338562; Room F1-009 x 3147
mailto:brendan.halpin at ul.ie ULSociology on Facebook: http://on.fb.me/fjIK9thttp://teaching.sociology.ul.ie/bhalpin/wordpress twitter:@ULSociology