[R] Extracting mean level of factor for all levels from a glm

From: Ruben Roa Ureta <rroa_at_udec.cl>
Date: Mon 11 Sep 2006 - 04:59:48 GMT


ComRades:

I have a glm where interest lies in the estimated mean levels of the response Y for every level of factor Year (regardeless of statistical significance of the factor), when the effect of other factors have been accounted for. The model is of the form:

fit<-glm(Y~Year+Mo+Area+Ship+Eff,family=gaussian(link="log"),data=data)

where Year is categorical and has T levels (labeled 1 to T in the data). Help much appreciated on how to extract these 'standardised' annual estimates of Y and their standard errors.

Rubén



R-help@stat.math.ethz.ch 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. Received on Mon Sep 11 16:08:08 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 11 Sep 2006 - 22:30:04 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.