5. Problem 4 considered the calculation of logistic model. In this problem we consider the calculation of Poisson loglin
Posted: Mon Apr 11, 2022 6:25 am
5. Problem 4 considered the calculation of logistic model. In this problem we consider the calculation of Poisson loglinear model. Suppose y~ Poisson(u(21, 22, 23)), and logu(x1, X2, X3) = Bo + Bixi + B2x2 + B3X3, where X1, X2, and x3 are the three predictors. Write an R function to calculate the MLE of Bo, B1, B2 and 33 using the Fisher scoring method. The function should have form MLE. Loglinear <- function(y, x1, x2, x3). Here y is the y vector, x1 is the xl vector, y x2 is the x2 vector, and x3 is the x3 vector.