You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that should be scipy.stats.chi2.ppf, as is the case for the gamma function. As it stands, when adjusted_r[i] == 0, we get a TypeError, since calling chi2(parameters) directly creates a frozen random variable, which can't be multiplied.
I think there's a minor bug in
pysal.esda.smoothing.direct_age_standardization
:I think that should be
scipy.stats.chi2.ppf
, as is the case for the gamma function. As it stands, whenadjusted_r[i] == 0
, we get aTypeError
, since callingchi2(parameters)
directly creates a frozen random variable, which can't be multiplied.The traceback that occurs is:
Someone with a knowledge of smoothing should probably review.
The text was updated successfully, but these errors were encountered: