wald_weighted_unc¶
-
hep_spt.
wald_weighted_unc
(k, N, cl=0.6826894921370859)[source]¶ Calculate the symmetric Wald uncertainty for a weighted sample, where “k” is the array of weights in the survival sample and “N” in the main sample.
- Parameters
k (numpy.ndarray(float)) – passed weights.
N (numpy.ndarray(float)) – total weights.
cl (float or numpy.ndarray(float)) – confidence level.
- Returns
symmetric uncertainty.
- Return type
float or numpy.ndarray(float)