I would like to do a chi-squared test on the following matrix: CP<-matrix(c(26,17,9,27,8,9,9,8,29,9,6,17,81,7,43,36,2,4,3,0,5,1,0,12,29,9,12,19,0,0),nrow=3)
dimnames(CP) <- list(c("less10","bt10and50","more50"),c("T10","T9","T8","T7","T6","T5","T4","T3","T2","T1")) I want to set the expected values as 26, 17, 9 (ie. the data from T10). How do assign expected values and complete the Chi-squared test? Cheers [[alternative HTML version deleted]] ______________________________________________ R-help@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.