問題タブ [gwr]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
r - 固定帯域幅の地理的に重み付けされた回帰の作成
私は R を初めて使用し、Roger Bivand によって R 用に開発されたコードを使用して、地理的に重み付けされた回帰を計算しようとしています。コードの説明については、ヘルプ (gwr) を参照してください。教授の助けを借りて、適応帯域幅で動作させることができました。
ライブラリ(GWモデル)
DM<-gw.dist(dp.locat=coords)
adapt.bs1 <- gwr.sel(OnTer_tory ~ CL + cinc + Allie_thUS + Island + Landlocked, adapt = TRUE, method = "cv", gweight = gwr.bisquare, coords = coords)
gwr1 <- gwr(OnTer_tory ~ CL + cinc + Allie_thUS + Island + Landlocked, adapt = adapt.bs1, gweight = gwr.bisquare, coords = coords, hatmatrix = TRUE)
ただし、固定帯域幅で試してみると: fixed.bs1 <- gwr.sel(OnTer_tory ~ CL + cinc + Allie_thUS + Island + Landlocked, adapt = FALSE, method = "cv", gweight = gwr.bisquare, coords = coords )
gwr2 <- gwr(OnTer_tory ~ CL + cinc + Allie_thUS + Island + Landlocked, adapt = fixed.bs1, gweight = gwr.bisquare, coords = coords, hatmatrix = FALSE)
次のエラーが表示されます: gwr2 <- gwr(OnTer_tory ~ CL + cinc + Allie_thUS + Island + Landlocked, + adapt = fixed.bs1, gweight = gwr.bisquare, coords = coords, hatmatrix = FALSE) エラー: (adapt <= 1) 真ではない
私は何を間違っていますか?
r - GWR モデルから AICc を返す
spgwr パッケージを使用して R で地理的加重回帰 (GWR) を実行しましたが、AICc の値を抽出して個別に保存したいと考えています。
ただし、これは可能ではないようです。では、GWR の AICc を抽出または計算するには、他にどのような方法があるでしょうか?
あるいは、これが不可能な場合、GWR モデルと OLS モデルをどのように比較できますか? anova() は p 値を報告しないため、あまり役に立ちません。
ありがとうございました!