0
如何测试订购组的趋势。我使用prop.trend.test
但它并没有整理成组,不给的sum of ranks
预期输出,z value
... 我使用这个命令 prop.trend.test (birthweight2$lbw2 ,birthweight2$gestwkgp)
跨订购组的趋势测试
我有这样的数据集
lbw2 gestwkgp
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 4
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 4
low birth weight 2
normal birth weight 4
normal birth weight 4
normal birth weight 3
normal birth weight 4
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 2
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 4
normal birth weight 3
normal birth weight 4
normal birth weight 4
normal birth weight 3
normal birth weight 3
normal birth weight 3
low birth weight 3
low birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
low birth weight 1
normal birth weight 3
normal birth weight 4
normal birth weight 3
normal birth weight 4
normal birth weight 3
normal birth weight 3
normal birth weight 4
normal birth weight 3
low birth weight 1
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 4
normal birth weight 3
normal birth weight 4
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 4
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 2
normal birth weight 3
low birth weight 2
normal birth weight 3
low birth weight 2
low birth weight 2
normal birth weight 4
normal birth weight 2
normal birth weight 3
low birth weight 1
normal birth weight 3
normal birth weight 3
low birth weight 1
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
low birth weight 2
normal birth weight 4
low birth weight 2
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 2
normal birth weight 3
normal birth weight 3
low birth weight 1
normal birth weight 4
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 2
normal birth weight 3
normal birth weight 3
normal birth weight 2
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 3
normal birth weight 4
我会更清楚什么样的错误的来源是,如果你张贴'输出(出生weight2)',但我想你不明白什么类的gestwkgp2列是如何订购的。 –
gestwkgp是类因子,我不想将它用作分组变量 – Keniajin