Fabio Bulleri
2009-Nov-10 16:26 UTC
[R] Calculating the percentage of explained deviance in lmer
Dear all, I am trying to calculate some measure of the amount of variability in the response variable that is explained by a model fitted in lmer m1<-lmer(response-var ~ Condition+(1|Site/Area/Transect),family="binomial") . I've seen from the literature that the precentage of explained deviance is a common measure. How can I calculate it? Thanks a lot for your help, I hope this is not too shallow. Best Fabio ------------------------------------------------------------------------------ Fabio Bulleri, PhD Dipartimento di Biologia Università di Pisa Via A. Volta 6, I-56126, Pisa, Italy Tel. +39 050 2211448 Fax +39 050 2211410 [[alternative HTML version deleted]]
willow1980
2009-Nov-21 13:06 UTC
[R] Calculating the percentage of explained deviance in lmer
Hi, Fabio, I only have an idea on how to calculate deviance explained by the fixed effects. If you remove fixed effects and introduce one null model such as m2<-lmer(response-var ~ 1+(1|Site/Area/Transect),family="binomial"). Then, (deviance(m2)-deviance(m1))/deviance(m2) will represent deviance explained by fixed effects in m1. Hope this makes some sense. Best regards, Jianghua Fabio Bulleri wrote:> > Dear all, > I am trying to calculate some measure of the amount of variability in the > response variable that is explained by a model fitted in lmer > m1<-lmer(response-var ~ > Condition+(1|Site/Area/Transect),family="binomial") . > I've seen from the literature that the precentage of explained deviance is > a common measure. How can I calculate it? > Thanks a lot for your help, I hope this is not too shallow. > Best > Fabio > ------------------------------------------------------------------------------ > Fabio Bulleri, PhD > Dipartimento di Biologia > Universit? di Pisa > Via A. Volta 6, I-56126, Pisa, Italy > Tel. +39 050 2211448 > Fax +39 050 2211410 > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >-- View this message in context: http://old.nabble.com/Calculating-the-percentage-of-explained-deviance-in-lmer-tp26286427p26456408.html Sent from the R help mailing list archive at Nabble.com.
Maybe Matching Threads
- choosing a random sample by precentage
- barchart fails when grouping variable has more than 7 levels (PR#7293)
- phase determination
- Sum of the deviance explained by each term in a gam model does not equal to the deviance explained by the full model.
- fraction of null deviance explained by each node/variable in regression trees