Bricks fly fine with sufficient thrust, but you have lff with a mu argument
that never gets used, so the negative log-likelihood is constant and mle()
cannot minimize it.
You need to read up on the definition of (log-) likelihood and write a proper
one for your problem.
-pd
> On 26 Jun 2019,
I am analyzing animal movement pattern using levy flight pattern and want
to fit power function to observed data and estimate exponent using Maximum
Likelihood Estimation.
I am using
lff<-function(mu){1-1/mean(log(x))}
library(stats4)
mle(lff, start = list(mu = 1))
where x is the observed data.
2 matches
Mail list logo