How to Check Which Link Function to Use in Glm
μ exp X β. Y binornd 1p. Final Generalized Linear Model Glm Results For The Variables Download Table You want to choose a link function that fits your data well. . All of the link functions provided by these family objects are also compatible with stan_glm. This type of link is more commonly used with the binomial distribution. A link function g x fulfills X β g μ. Typing args Gamma shows you the following. Using the inverse link function the underlying model is 1Y beta_2X_2 beta_1X_1 beta_0. Rearranging for Y we get Y 1 beta_2X_2 beta_1X_1 beta_0 We see the relationship between Y and X is different between the two. Function link inverse NULL. And two functions I a link function that describes how the mean E Y i i depends on the linear predictor g i i. Substituting various definitions for g and F results in a surprising array of models. In fact it is the complementary log-log link using log...