Skip to contents

Evaluates the log-likelihood and population size over a grid of values for a chosen alpha coefficient, holding other parameters at their MLE (concentrated profile) or re-optimizing them (true profile).

Usage

profile_alpha(
  object,
  coef_index = 1,
  grid = NULL,
  reoptimize = FALSE,
  plot = TRUE,
  ...
)

Arguments

object

An "uncounted" object.

coef_index

Integer: which alpha coefficient to profile (1 = intercept).

grid

Numeric vector of values to evaluate. If NULL (default), auto-generates 30 points spanning \(\pm 3\) SE around the MLE.

reoptimize

Logical. If TRUE, optimize all other parameters at each grid point (true profile likelihood). If FALSE (default), hold everything else at the MLE (concentrated profile, faster).

plot

Logical; produce the plot? Default TRUE.

...

Additional arguments passed to plot().

Value

Invisibly, a data frame with columns: value, xi, loglik.