Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

RxLinMod 和 lm 結果之間的差異通常是因為使用不同的對比,從使用何種 lm rxLinMod 的迴歸。從 rxLinMod 說明: 「 相反地,rxLinMod,預設情況下使用一組的卸除最後一層的每個因素的對比。設定 dropFirst = TRUE 會更多類似的 lm 於產生的結果。"

根據預設,rxLinMod 被設計來產生結果符合 SA 的結果。如果預設的 rxLinMod 結果仍不符合 SA 結果,或有任何的因素變數,檢查是否 rxLinMod 呼叫使用 fweights 或 pweights。

"pweights"和"fweights",rxLinMod() 可讓前者會對應到 SA 所使用的加權和鍵。"fweights"都非常實用的計算,有些類型,雖然大部分其他的程式不支援它們。

將"fweights"變更為"pweights",在呼叫 rxLinMod 應該取得 R 和 SA 一樣的結果。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×