Question: Write a function called fitModel which accepts as its first argument argument a design matrix x and as its second argument a vector of outcome
Write a function called fitModel which accepts as its first argument argument a design matrix and as its second argument a vector of
outcome counts The function should return the maximum likelihood estimates for the coefficients of a Poisson regression of onto
Test your function by calling it with
array T
array
What is your estimated
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
