Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
很抱歉问了这么愚蠢的问题,但我真的很困惑!我有一个带有一个断点的分段线性回归,现在我想测试davies.test包中斜率的显着差异segmented:
davies.test
segmented
lin.mod <- lm(y~x) segmented.mod <- segmented(lin.mod, seg.Z=~x)
现在哪一个对戴维斯测试是正确的?
davies.test(lin.mod, seg.Z=~x)
或者
davies.test(segmented.mod, seg.Z=~x)
davies.test(lin.mod, seg.Z=~x)是正确的,因为 davies.test() 只接受 lm() 或 glm() 对象作为正确的输入。该函数在内部计算断点。