Question: Consider a Poisson log-likelihood function with an unknown rate parameter 1(2) = [(y,In(2) - 1 - In(y,!)) i=1 Write an R function, which returns

Consider a Poisson log-likelihood function with an unknown rate parameter 1(2) = 

Consider a Poisson log-likelihood function with an unknown rate parameter 1(2) = [(y,In(2) - 1 - In(y,!)) i=1 Write an R function, which returns the log-likelihood value for a given sample and 2 parameter. Part b Generate 3 different samples of 100 observations from Poisson distribution with parameter 3. Combine them in a data frame. (Hint: You can check rpois() command). Then, test your function on the variables in this data frame using the corresponding *apply function.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!