Re: [R] Function hatTrace in package lme4

2012-10-18 Thread ingaschwabe
Thanks for the reply!! Inga -- View this message in context: http://r.789695.n4.nabble.com/Function-hatTrace-in-package-lme4-tp4646071p4646593.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https:/

Re: [R] Function hatTrace in package lme4

2012-10-14 Thread Ben Bolker
ingaschwabe gmail.com> writes: > > Dear all, > > For a project I need to calculate the conditional AIC of a mixed effects > model. > Luckily, I found a reference in the R help forum for a function to be used: > > CAIC <- function(model) { > > sigma <- attr(VarCorr(model), 'sc') >

[R] Function hatTrace in package lme4

2012-10-13 Thread ingaschwabe
Dear all, For a project I need to calculate the conditional AIC of a mixed effects model. Luckily, I found a reference in the R help forum for a function to be used: CAIC <- function(model) { sigma <- attr(VarCorr(model), 'sc') observed <- attr(model, 'y') predicted