阅读背景:

使用不同大小的多个表合并和重塑数据/表

来源:互联网 

My goal is to get a table that, for a list of categorical variables, returns (from left most column to right most column): the categorical variable name, the categorical variable level, the frequency for the first level of a binary grouping variable, the frequency for the second level of a binary grouping variable, the chi-squared test stat, the p.value, and the testing method. Example of the output I want is presented at the very bottom of the page. The current output and code is for a single categorical variable. I'm trying not to put the horse before the carriage. Right now getting the right format for a single variable will be good. I'll work on getting it to do it for a string and then rbind them together after that. My goal is to get a table that, for a list of c




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: