Method: Statsample::Regression::Multiple::BaseEngine#predicted
- Defined in:
- lib/statsample/regression/multiple/baseengine.rb
#predicted ⇒ Object
Retrieves a vector with predicted values for y
45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/statsample/regression/multiple/baseengine.rb', line 45 def predicted Daru::Vector.new( @total_cases.times.collect do |i| invalid = false vect = @dep_columns.collect {|v| invalid = true if v[i].nil?; v[i]} if invalid nil else process(vect) end end ) end |