binary_likelihood_profs: Return likelihood profiles for binary covariates special case

Description Usage Arguments Value

View source: R/likelihood-profiling.R

Description

Return likelihood profiles for binary covariates special case

Usage

1
2
3
4
5
6
7
8
binary_likelihood_profs(
  best_pars,
  max_loglike,
  obs_data_summary,
  mc_samples_summary,
  alpha = 0.05,
  multiple_outside_transmissions = FALSE
)

Arguments

best_pars

vector of MLE

max_loglike

loglike value from MLE

obs_data_summary

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

mc_samples_summary

tree summaries, output from sample_mc_binary_cov

alpha

alpha-value to make a (1-alpha)% CI

multiple_outside_transmissions

logical indicating to use base model or multiple outside transmissions model.

Value

matrix of dimension (length of best_pars) x 3 where the columns are the best parameter estimate, the lower CI (lower) and upper CI (upper) @export


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