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 x and as its second argument a vector of
outcome counts y. The function should return the maximum likelihood estimates for the coefficients of a Poisson regression of y onto x.
Test your function by calling it with
x=np.array([123231]). T
y=np.array([0,2,10])
What is your estimated b?
 Write a function called fitModel which accepts as its first argument

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 Databases Questions!