search for: x_l

Displaying 4 results from an estimated 4 matches for "x_l".

Did you mean: _l
2009 Mar 16
1
Uniroot and Newton-Raphson Anomaly
...y above, I am thinking a change of mindset might be necessary, although I am not certain if the same issue that affects NR will propagate to other root finding algorithms. Now, to use uniroot, my understanding is that I need to start with two guesses for a lower and upper limit of a such that: f(x_l)*f(x_u) < 0 Where f(x_l) and f(x_u) are the lower and upper limits, respectively. With this, I can try: f <- function(R,a,c,q) sum((1 - (1-R)^a)^(1/a)) - c * q uniroot(f, c(.5,2), R = c(.2,.4), c = .5, q=2) Which gives the same root as my NR function. Now, the issue I am running into is th...
2018 Mar 09
3
Contar categorías después de ciertos valores
Hola, Estoy intentando averiguar cómo contar el número de categorías situadas después de ciertos valores. Por ejemplo, en el siguiente vector: x <- c(3, "A", "B", 5, "A", 4, 5, "A", "A", 3) el resultado que quisiera obtener es: Valor -> Resultado 3 -> 1 A y 1 B 4 -> 0 A y 0 B 5 -> 3 A y 0 B ¿Alguien tiene alguna
2017 May 31
2
stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3
Le 31/05/2017 ? 17:30, Serguei Sokol a ?crit : > > More thorough reading revealed that I have overlooked this phrase in the > line's doc: "left and right /thirds/ of the data" (emphasis is mine). Oops. I have read the first ref returned by google and it happened to be tibco's doc, not the R's one. The layout is very similar hence my mistake. The latter does not
2017 May 31
0
stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3
...physical libraries anymore; In this case, interestingly, you need one of those I think - almost everything I found online did not have the exact details. Peter Dalgaard definitely was right that Tukey did not use quantiles at all, and notably did *not* define the three groups via {i; x_i <= x_L} and {i; x_i >= X_R} which (as I think you noticed) may make the groups quite unbalanced in case of duplicated x's. But then, for now I had decided to fix the bug (namely computing the x-medians wrongly as you diagnosed correctly(!) -- but your first 2 patches only fixed partly) *and* go...