Categorical Data Analysis

1. (a) Perform the following simulation (for this please set the seed to your student ID),• Generate 500 random values from X1 ~ Uniform[[10, 10], X2 ~ N(0, 4) and X3 ~Bernoulli(0.7)• Set ß = ((0.8, 0.1, 0.2, 0.3)• Simulate Yi ~ Poisson(µi), where, µi = exp(Pj xijßj )(b) Estimate the ßs using Iteratively Weighted Least Square (IRLS) method. Explain the procedure and state the W matrix as mentioned in lecture 7. Compare the results with glm code in R 



 Read less

Answer Detail

Get This Answer

Invite Tutor