Question: Task 4 The following function mymaxg() is more general and provided you create the appropriate helper function (in the example logbin2() ) you can use

Task 4 The following function mymaxg() is more
Task 4 The following function mymaxg() is more general and provided you create the appropriate helper function (in the example logbin2() ) you can use a grid approximation to make maximum likelihood estimations. Notice we can now use independent binomials with different "n" values - we assume same "p". Also, notice the plot is the likelihood not log-likelihood logbin2-function(theta) {log(dbinom(1, prob=theta, size=2)) + log(dbinom(7, prob=theta, size=8))} mymaxlike=function (1fun="logbin2", theta) { # default Log Like is a combination bin rith

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!