Get z=weighted probability for single instance Returns NA for missing values and observations exactly at 0 Defines clipping with a percentage threshold, lambda density is (PoC/(1-lambda))*1[obs>=lambda] + ((1-PoC)/CDF(lambda))*Beta(obs,a,b)*1[obs < lambda]
1 2 | get_weighted_probability(OBS, PoC, param1, param2, w,
percent_clipping_threshold, bma_distribution, max_power)
|
OBS |
A single observation |
PoC |
Probability of clipping |
param1 |
Distribution parameter 1: mean for both beta and truncnorm distributions |
param2 |
Distribution parameter 2: gamma for a beta; sd for a truncnorm distribution |
w |
this member's weight |
percent_clipping_threshold |
[0,..1] |
bma_distribution |
"beta" or "truncnorm" |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.