Categorical Data Analysis
- University Of Toronto / STAC51H3S
- 18 Nov 2020
- Price: $20
- Other / Other
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