Displaying 1 result from an estimated 1 matches for "shrieb".
Did you mean:
schrieb
2004 Feb 15
5
Maximum likelihood estimation in R
Dear Sir,
I am a new user of R and I am doing a tast, which is: find the maximum
likelihood estimate of the parameter of Gaussian distribution for generated
100 numbers by using >x=rnorm(100, mean=3, sd=1).
I tried to use following Maximum Likelihood function
>fn<-function(x)
(-50*log((sd(x))^2))-50*log(sqrt(2*pi))-(1/2*((mean(x))^2))*(sum((x-(mean(x))^2)),
but it did not work.
I am