Complete the following question in R.
Problem 5. Write a function in R called like which takes an input vector dat, assumed to be Poisson random variates, and computes the Maximum-Likelihood Estimator for λ
> ## Generate the ovservation from a
poisson distribution with parameter 10
> # with sample size n
>
> X=rpois(n=100, lambda=10)
>
> # The Maximum Likelihood estimator for the parameter lambda
is
>
> Mean=mean(X)
> Mean
[1] 10.23
Get Answers For Free
Most questions answered within 1 hours.