search for: ddisp

Displaying 1 result from an estimated 1 matches for "ddisp".

Did you mean: disp
2006 Nov 13
2
A printing "macro"
I am exploring the result of clustering a large multivariate data set into a number of groups, represented, say, by a factor G. I wrote a function to see how categorical variables vary between groups: > ddisp <- function(dvar) { + csqt <- chisq.test(G,dvar) + print(csqt$statistic) + print(csqt$observed) + print(round(csqt$expected)) + round(csqt$residuals) + } > > x <- ceiling(4*runif(100)) > G <- gl(4,1,100) > ddisp(x) X-squared 6.235645 dvar G 1 2 3 4...