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