5. Problem 4 considered the calculation of logistic model. In this problem we consider the calculation of Poisson loglin
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
5. Problem 4 considered the calculation of logistic model. In this problem we consider the calculation of Poisson loglin
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!