family.gssanova {gss}R Documentation

Utility Functions for Error Families

Description

Utility functions for fitting Smoothing Spline ANOVA models with non Gaussian responses.

Usage

mkdata.[family](y, eta, wt, offset)
dev.resid.[family](y, eta, wt)
dev.null.[family](y, wt, offset)

Arguments

y Model response.
eta Fitted values on link scale.
wt Model weights.
offset Model offset.

Details

family appearing in the function names is to be substituted by binomial, poisson, Gamma, inverse.gaussian, or nbinomial.

Only one link is implemented for each family. It is the logit link for binomial, and the log link for poisson, Gamma, and inverse.gaussian. For nbinomial, the working parameter is the logit of the probability p; see NegBinomial.

mkdata.x create the pseudo data to be used in iterated penalized least squares fitting. dev.resid.x calculate the deviance residuals. dev.null.x calculate the deviance of the constant null model.

Note

For binomial, the response can be specified either as two columns of counts or as a column of sample proportion plus a column of weights, as in glm.

For nbinomial, the response may be specified as two columns with the second being the known sizes, or simply as a single column with the common unknown size to be estimated through the maximum likelihood method.

See Also

gssanova.