Changeset 10576:5300380b00ce in orange for Orange/regression/linear.py
 Timestamp:
 03/19/12 20:08:15 (2 years ago)
 Branch:
 default
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

Orange/regression/linear.py
r10575 r10576 295 295 sigma_square = sse / (n  m  1) 296 296 # standard error of the regression estimator, tscores and pvalues 297 std_error = sqrt(sigma_square * pinv(dot(X.T, X)).diagonal())297 std_error = sqrt(sigma_square * invcov.diagonal()) 298 298 t_scores = coefficients / std_error 299 299 p_vals = [stats.betai(df * 0.5, 0.5, df / (df + t * t))
Note: See TracChangeset
for help on using the changeset viewer.