binary_loglike_wrapper: Wrapper to optimize over a single variable for likelihood...

Description Usage Arguments Details Value

View source: R/likelihood-profiling.R

Description

Wrapper to optimize over a single variable for likelihood profiling

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
binary_loglike_wrapper(
  x,
  max_loglike,
  best_pars,
  obs_data_summary,
  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

obs_data_summary

actual data summary with cluster_size, x_pos, and x_neg and frequency of each

mc_samples_summary

output of sample_mc_binary_cov

alpha

α-value for computing confidence intervals.

beta_index

which parameter to optimize over.

multiple_outside_transmissions

whether to use base model or not

Details

internal function only

Value

zeros of likelihood profiling for given alpha


skgallagher/InfectionTrees documentation built on July 28, 2021, 2:14 p.m.