Estimate the size at morphometric maturity using a logistic regression with X variable
and maturity classification (two categories: juveniles and adults).
The function requires an object of class "classify" with the X, Y (allometric variables) and classification of maturity (juveniles = 0, adults = 1).
The argument method requires a character string indicating which regression will be used for the test.
If method = "fq" the logistic regression is based on GLM (frequentist) and if method = "bayes" a sample from the posterior distribution
of a logistic regression model using a random walk Metropolis algorithm is generated (see MCMClogit function).
The argument niter requires a number. For the GLM regression (method = "fq"), a non-parametric bootstrap method consists
in generate B bootstrap samples, by resampling with replacement the original data. Then all statistics for each parameter
can be calculated from each bootstrap sample (median and confidence intervals).
For the method = "bayes", the argument `niter` is related to the number of Metropolis iterations for the sampler.