Wrapper to optimize over a single variable for likelihood profiling

binary_loglike_wrapper(
  x,
  max_loglike,
  best_pars,
  mc_samples_summary,
  alpha = 0.05,
  beta_index = 1,
  multiple_outside_transmissions = FALSE
)

Arguments

x

parameter to optimize over

max_loglike

maximum loglike value from output

best_pars

vector of best parameters

mc_samples_summary

output of sample_mc_binary_cov

alpha

\(\alpha\)-value for computing confidence intervals.

beta_index

which parameter to optimize over.

multiple_outside_transmissions

whether to use base model or not

Value

zeros of likelihood profiling for given \(alpha\)

Details

internal function only