ieck wrote:
>
> Try this:
>
> x <- c(1, 0.049, 0.129, 0.043, 0.013, 0.015, 0.040, 0.066,
> 0.038, 0.2040, 0.0221, 0.234, 0.0443, 0.0684, 0.035)
> cl <- kmeans(x, 5)
> cl
> newold <- with(cl, data.frame(old = x, new = centers[cluster]))
> newold
>
Correction: I made some mistake in my bucket/cluster list. It should be:
[((4, 5, 10), 0.024),
((1, 3, 6, 8, 12, 14), 0.049),
((7, 13), 0.072),
((2), 0.121),
((9, 11), 0.185)]
--
View this message in context:
http://www.nabble.com/Bucketing-Grouping-Probabilities-tp20582544p20583699.html
I have a list of entrants (1-14 in this example) in a competitive event and
corresponding win probabilities for each entrant.
[(1, 0.049), (2, 0.129), (3, 0.043), (4, 0.013), (5, 0.015), (6,
0.040), (7, 0.066), (8, 0.038), (9, 0.204), (10, 0.022), (11, 0.234),
(12, 0.044), (13, 0.068),
3 matches
Mail list logo