Let \(z = (y-\mu) e^{-\beta}\), then the log Gumbel density is \(l = -\beta - z - e^{-z}\). The expected value of a Gumbel r.v. is \(\mu + \gamma e^{\beta}\) where \(\gamma\) is Eulers constant (about 0.57721566). The corresponding variance is \(\pi^2 e^{2\beta}/6\).
gumbls
is used with gam
to fit Gumbel location - scale models parameterized in terms of location parameter \(\mu\) and the log scale parameter \(\beta\). Note that identity
link for the scale parameter means that the corresponding linear predictor gives \(\beta\) directly. By default the log
link for the scale parameter simply forces the log scale parameter to have a lower limit given by argument b
: if \(\eta\) is the linear predictor for the log scale parameter, \(\beta\), then \(\beta = b + \log(1+e^\eta)\).
gam
is called with
a list containing 2 formulae, the first specifies the response on the left hand side and the structure of the linear predictor for location parameter, \(\mu\), on the right hand side. The second is one sided, specifying the linear predictor for the lg scale, \(\beta\), on the right hand side.
The fitted values for this family will be a two column matrix. The first column is the mean, and the second column is the log scale parameter, \(\beta\). Predictions using predict.gam
will also produce 2 column matrices for type
"link"
and "response"
. The first column is on the original data scale when type="response"
and on the log mean scale of the linear predictor when type="link"
. The second column when type="response"
is again the log scale parameter, but is on the linear predictor when type="link"
.