2017-12-14 2 views
0

私はこの線形回帰問題に約500-600の独立変数があります。私は現在、Rの「Olssr」パッケージを使用してステップワイズ回帰を実行しますが、このエラーを取得維持しようとしていますR.を使用してモデルの変数選択のための最善の方法だろう。RのOlssrを使った変数選択

>ols_all_subset(mylogit) 
Error in matrix(r, nrow = len.r, ncol = count) : 
invalid 'ncol' value (too large or NA) 
In addition: Warning message: 
In combn(n, r[i]) : NAs introduced by coercion to integer range 

答えて

0

olsrrマニュアルをAccodring、ols_all_subset

Fits all regressions involving one regressor, two regressors, three regressors, and so on. It tests all possible subsets of the set of potential independent variables.

500〜600の変数の場合、2〜500> 10^150の可能な組み合わせがあり、時間がかかりすぎるだけです。段階的な変数選択のために、むしろols_stepwise

+0

私はすべてのols手続きを試みました、それらのすべてが同じエラーを表示し続けます –

+0

どのような種類のデータがエラーの原因ですか?あなたはデータのサブセットを試しましたか? – Heikki

関連する問題