Used with gam
to fit gamma location - scale models parameterized in terms of the log mean and the log scale parameter (the response variance is the mean multiplied by the scale parameter). Note that identity
links mean that the linear predictors give the log mean and scale 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, \(\phi\), then \(\log \phi = 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 the log mean on the right hand side. The second is one sided, specifying the linear predictor for the log sscale on the right hand side.
The fitted values for this family will be a two column matrix. The first column is the mean (on origianl, not log, scale), and the second column is the log scale. 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"
.
The null deviance reported for this family computed by setting the fitted values to the mean response, but using the model estimated scale.