In this example, the number of explanatory variables is equal
to 2 (p = 2). Thus, the link function is simplified as g(πi) =
β1 + β2xi, where β1 and β1 are the intercept and the slope of
the regression function, respectively, which is shown by vector
β = (β1, β2)T . Also, we set the design matrix X as: