Learn R Programming

brglm2 (version 1.0.1)

mdyplControl: Auxiliary function for glm() fitting using the brglmFit() method.

Description

Typically only used internally by brglmFit(), but may be used to construct a control argument.

Usage

mdyplControl(alpha = NULL, epsilon = 1e-08, maxit = 25, trace = FALSE)

mdypl_control(alpha = NULL, epsilon = 1e-08, maxit = 25, trace = FALSE)

Value

A list with components named as the arguments.

Arguments

alpha

the shrinkage parameter (in [0, 1]) in the Diaconis-Ylvisaker prior penalty. Default is NULL, which results in alpha = n / (n + p), where n is the sum of the binomial totals and p is the number of model parameters. Setting alpha = 1 corresponds to using maximum likelihood, i.e. no penalization. See Details.

epsilon

positive convergence tolerance epsilon. Default is 1e-08.

maxit

integer giving the maximal number of iterations allowed. Default is 25.

trace

logical indicating if output should be produced for each iteration. Default is FALSE.

Author

Ioannis Kosmidis [aut, cre] ioannis.kosmidis@warwick.ac.uk

Details

Internally, mdyplFit() uses stats::glm.fit() to fit a logistic regression model on responses alpha * y + (1 - alpha) / 2, where y are the original binomial responses scaled by the binomial totals. epsilon, maxit and trace control the stats::glm.fit() call; see stats::glm.control().

See Also

mdyplFit(), glm.control()