Skip to contents

Estimate the sigma parameter for a HubbellGLM model via BIC minimisation

Usage

estimate_sigma(formula, data, startpoint = 0, verbose = TRUE)

Arguments

formula

A formula specifying the model (same syntax as HubbellGLM).

data

A data.frame containing the variables in formula.

verbose

Logical; if TRUE (default), prints the sigma value evaluated at each iteration.

Value

A scalar: the value of sigma that minimises the BIC of the fitted model.