Transform cumulative probabilities to fit beta distributions
Source:R/get_model_input_1exp.R
get_model_input_1exp.Rd
Transform cumulative probabilities to fit beta distributions
Arguments
- cum_probs
Numeric vector, containing cumulative probabilities of weights for one expert, as elicited through the roulette method. Each element of the vector represents one bin in the grid.
- w
Numeric vector, upper interval limit of bin (defaults to
1:length(cum_probs) / length(cum_probs)
).
Examples
chips <- c(0, 2, 3, 2, 1, 1, 1, 0, 0, 0)
x <- get_cum_probs_1exp(chips)
print(x)
#> [1] 0.0 0.2 0.5 0.7 0.8 0.9 1.0 1.0 1.0 1.0
y <- get_model_input_1exp(x)
print(y)
#> w cum_probs
#> 1 0.2 0.2
#> 2 0.3 0.5
#> 3 0.4 0.7
#> 4 0.5 0.8
#> 5 0.6 0.9
#> 6 0.7 1.0