lib/statsample/regression/multiple/alglibengine.rb in statsample-2.0.2 vs lib/statsample/regression/multiple/alglibengine.rb in statsample-2.1.0
- old
+ new
@@ -17,10 +17,10 @@
# lr=Statsample::Regression::Multiple::AlglibEngine.new(ds, :y)
#
class AlglibEngine < BaseEngine
def initialize(ds,y_var, opts=Hash.new)
super
- @ds = ds.dup_only_valid
+ @ds = ds.reject_values(*Daru::MISSING_VALUES)
@ds_valid = @ds
@dy = @ds[@y_var]
@ds_indep = ds.dup(ds.vectors.to_a - [y_var])
# Create a custom matrix
columns = []