likelihood_profs: Return likelihood profiles

Description Usage Arguments Value

View source: R/likelihood-profiling.R

Description

Return likelihood profiles

Usage

1
2
3
4
5
6
7
8
likelihood_profs(
  best_pars,
  max_loglike,
  mc_trees,
  covariate_names,
  alpha = 0.05,
  multiple_outside_transmissions = FALSE
)

Arguments

best_pars

vector of MLE

max_loglike

loglike value from MLE

mc_trees

trees, output from sample_mc_trees)

covariate_names

names of covariates

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.