Class: Statsample::GLM::IRLS::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/statsample-glm/glm/irls/base.rb

Direct Known Subclasses

Logistic, Poisson

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_set, dependent, opts = {}) ⇒ Base

Returns a new instance of Base.


9
10
11
12
13
14
15
# File 'lib/statsample-glm/glm/irls/base.rb', line 9

def initialize data_set, dependent, opts={}
  @data_set  = data_set.to_matrix
  @dependent = dependent
  @opts      = opts

  irls
end

Instance Attribute Details

#coefficientsObject (readonly)

Returns the value of attribute coefficients


6
7
8
# File 'lib/statsample-glm/glm/irls/base.rb', line 6

def coefficients
  @coefficients
end

#degree_of_freedomObject (readonly)

Returns the value of attribute degree_of_freedom


6
7
8
# File 'lib/statsample-glm/glm/irls/base.rb', line 6

def degree_of_freedom
  @degree_of_freedom
end

#fitted_mean_valuesObject (readonly)

Returns the value of attribute fitted_mean_values


6
7
8
# File 'lib/statsample-glm/glm/irls/base.rb', line 6

def fitted_mean_values
  @fitted_mean_values
end

#iterationsObject (readonly)

Returns the value of attribute iterations


6
7
8
# File 'lib/statsample-glm/glm/irls/base.rb', line 6

def iterations
  @iterations
end

#residualsObject (readonly)

Returns the value of attribute residuals


6
7
8
# File 'lib/statsample-glm/glm/irls/base.rb', line 6

def residuals
  @residuals
end

#standard_errorObject (readonly)

Returns the value of attribute standard_error


6
7
8
# File 'lib/statsample-glm/glm/irls/base.rb', line 6

def standard_error
  @standard_error
end