Usage
dglm(responses, predictors, family=gaussian, weights=NULL,
na_action="exclude", start=NULL, etastart=NULL, mustart=NULL,
offset=NULL, control=list(...), method="dglm.fit.Newton",
completeModel=FALSE, ...)
Arguments
responses
the darray that contains the vector of responses.
predictors
the darray that contains the vector of predictors. dglm() cannot accept a predictor with constant value. Moreover, a categorical predictor should be decoded (converted to several predictors) before applying dglm().
family
it specifies the family function for regression. The supported family-links at the time of this writing are gaussian(identity), binomial(logit), and poisson(log). The mentioned links are the default ones for their families; so, specifying them is optional. The default family is Gaussian.
weights
it is an optional darray of 'prior weights' to be used in the fitting process. It has a single column. The number of rows and its number of blocks should be the same as responses. The values should not be negative (greater than or equal to zero). Weight zero on a sample makes it be ignored.
na_action
it indicates what should happen when the data contain missed values. Values of NA, NaN, and Inf in samples are treated as missed values. There are two options for this argument exclude and fail. When exclude is selected (the default choice), the weight of any sample with missed values will become zero, and that sample will be ignored in the fitting process. In the darray which will be created for residuals, the value corresponding to these samples will be NA. When fail is selected, the function will stop in the case of any missed value in the dataset.
start
starting values for coefficients. It is optional.
etastart
starting values for parameter 'eta' which is used for computing deviance. It should be of type darray. It is optional.
mustart
starting values for mu 'parameter' which is used for computing deviance. It should be of type darray. It is optional.
offset
an optional darray which can be used to specify an _a priori_ known component to be included in the linear predictor during fitting.
control
an optional list of controlling arguments. The optional elements of the list and their default values are: epsilon = 1e-8, maxit = 25, trace = FALSE, rigorous = FALSE.
method
this argument reserved for the future improvement. The only available fitting method at the moment is "dglm.fit.Newton". In the future, if we have new developed algorithms, this argument can be used to switch between them.
completeModel
when it is FALSE (default), calculation of several output values that are not required for prediction are skipped. Therefore, the function can perform faster.
...
arguments to be used to form the default
control argument if it is not supplied directly.