wald_weighted_int¶
-
hep_spt.
wald_weighted_int
(k, N, cl=0.6826894921370859)[source]¶ Calculate the symmetric Wald interval 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
Lower and upper bounds for the probability.
- Return type
float or numpy.ndarray(float)