Dear R Group
in package Deducer, how should i use the 
add.cross.strata.test() function to pass the chi.squared.test function as 
htest argument?


##########Example###########

library(Deducer)
dat<-data.frame(a=rnorm(100)>.5,b=rnorm(100)>0,c=rnorm(100)>(-.5))
tables<-contingency.tables(
 row.vars=a,
 col.vars=b,
 stratum.var=c,data=dat)

add.cross.strata.test(tables,"chi.squared.test",list(function(x) 
chi.squared.test(x)),
 "asymptotic")

The above function throws the following error..
Error in chi.squared.test(x) : Could not create table from x and y

how can i modify the htest argument in the above function to permit 
running chi-square on each strata?
I know  add.chi.squared() will help, but if i want to use the 
add.cross.strata.test, then what change in chi-squared function should i 
carry out to overcome this error?



Regards
Vijayan Padmanabhan

Regards
Vijayan Padmanabhan


Please visit us at www.itcportal.com
******************************************************************************
This Communication is for the exclusive use of the intended recipient (s) and shall
not attach any liability on the originator or ITC Ltd./its Subsidiaries/its Group 
Companies. If you are the addressee, the contents of this email are intended for your use only and it shall not be forwarded to any third party, without first obtaining written authorisation from the originator or ITC Ltd./its Subsidiaries/its Group Companies. It may contain information which is confidential and legally privileged and the same shall not be used or dealt with by any third party in any manner whatsoever without the specific consent of ITC Ltd./its Subsidiaries/its Group Companies.
	[[alternative HTML version deleted]]

