Displaying 2 results from an estimated 2 matches for "_nico_".
Did you mean:
_nice_
2009 Apr 08
3
MLE for bimodal distribution
Hello everyone,
I'm trying to use mle from package stats4 to fit a bi/multi-modal
distribution to some data, but I have some problems with it.
Here's what I'm doing (for a bimodal distribution):
# Build some fake binormally distributed data, the procedure fails also with
real data, so the problem isn't here
data = c(rnorm(1000, 3, 0.5), rnorm(500, 5, 0.3))
# Just to check
2009 Nov 06
3
order of points in spline
Hello everyone,
I was trying to fit a spline to some points and I was quite surprised to
find out that the function spline does not take into account the order of
the points themselves, but orders them by x.
For instance, I have:
x <- c(262, 275, 264, 250, 247, 242, 238, 233)
y <- c(422, 389, 359, 308, 269, 229, 191, 176)
plot(x, y, xlim=c(0, 500), ylim=c(0,500))
s <- spline(x,y)