You are able to obtain Chi squared values by using a wald chi square 
post hoc test. To do this you can use the aod package, function 
wald.test. This function is perfect for generalised linear models using 
poisson distribution. 


Also, as long as you have got 
interaction terms in your results from GLM, you could get the wald chi 
square (and an associated p-value) for these terms, hence giving you the
 table which you are after.

If this response is not clear enough, I can post some example (I am not sure of the etiquette) 

AA.

Date: Fri, 13 Jun 2014 18:07:27 -0700
From: ml-node+s471788n7578944h7@n2.nabble.com
To: alexander.angeloski@hotmail.com
Subject: Question about GLM post hoc and chi square



	Dear all,


I am making an analysis using a GLM using three explanatory variables and a

response variable. I need to obtain a table similar to this one,

http://postimg.org/image/5sau79wlt/r

 nevertheless, I have not been able to do it. I am having a hard time

specially getting the chi square values. I would like to know how to obatin

them.


I also would like to know what function could help me to make ad hoc

comparisons for single variables and interactions.


If any of you knows how to do both estimations, I would really appreciate

it.


All the best!!!


This is my script

a=read.table("ricis3.txt",header=T)

attach(a)

model7=glm(Count~Sex+Time+Behaviour+Sex*Time+Sex*Behaviour+Time+Behaviour*Sex,family=poisson)

summary(model7)


_______________________________________________

R-sig-ecology mailing list

[hidden email]

https://stat.ethz.ch/mailman/listinfo/r-sig-ecology

 ricis3.txt (964 bytes) Download Attachment

	
	
	
	

	

	
	
		If you reply to this email, your message will be added to the discussion below:
		http://r-sig-ecology.471788.n2.nabble.com/Question-about-GLM-post-hoc-and-chi-square-tp7578944.html
	
	
		
		To unsubscribe from r-sig-ecology, click here.

		NAML
	 		 	   		  



--
View this message in context: http://r-sig-ecology.471788.n2.nabble.com/Question-about-GLM-post-hoc-and-chi-square-tp7578944p7578946.html
Sent from the r-sig-ecology mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]

