Helper module

helper.DV_fun(sse, DV_pref=0.25)

Implementing a middle of the range preference for middle of the range splits.

Parameters
  • sse (np.array) – Sum of Squared Errors obtained from split-sample OLS.

  • DV_pref (float) – Parameter controlling the rate of down-voting.

helper.standard(Y)

Function to standardise the data. Remember we are doing ridge.

Parameters

Y (-) – Matrix of variables to standardise.

Returns

Including standardised matrix (“Y”), mean (“mean”) and standard deviation “std”

Return type

  • Standardised Data (dict)