From Lukas.Indermaur at eawag.ch  Fri Dec  1 15:28:45 2006
From: Lukas.Indermaur at eawag.ch (Indermaur Lukas)
Date: Fri, 1 Dec 2006 15:28:45 +0100
Subject: [Rd] mixed effects model and r-squared
Message-ID: <FE8C160D1505B24497FA7C78D4DADACA047879@EA-MAIL.eawag.wroot.emp-eaw.ch>

Heya 

I am fitting linear mixed effects model in R and want to assess the model fit (with Animal number as random factor;  repeated measures for Animals):   
 
ts.model <- lme(LOG_FOC_MW ~ R_DN_SUM + ANIMAL + SEX+ YY, data = t.data, random = ~ 1 | ANIMAL,  correlation=corCAR1(0.2, form = ~1 | ANIMAL ), method='ML', na.action=na.omit)). 
 
Is there a possability to easly compute an R-square from the output of the model summary?
 
I would appreciate any hint.
Best regards
 
Lukas
 
 
 
 
??? 
Lukas Indermaur, PhD student 
eawag / Swiss Federal Institute of Aquatic Science and Technology 
ECO - Department of Aquatic Ecology
?berlandstrasse 133
CH-8600 D?bendorf
Switzerland
 
Phone: +41 (0) 71 220 38 25
Fax    : +41 (0) 44 823 53 15 
Email: lukas.indermaur at eawag.ch
www.lukasindermaur.ch



[Rd] mixed effects model and r-squared
Indermaur Lukas