R/calculate_1D_likelihood.R

Defines functions calculate_1D_likelihood

#' @title calculate_1D_likelihood
#'
#' @description Internal function for calculating the one-dimensional likelihood function that depends on parameter s.
#'
#' @noRd

calculate_1D_likelihood <- function(n, x_c, dy, s, o) {
  tmp <- calculate_selected(n, x_c, dy, s, o)
  
  h <- log(tmp[[4]] / (tmp[[5]] ^ (1 - 1 / n)))
  g <- tmp[[3]]
  
  return (h + log(g))
}

Try the EMLI package in your browser

Any scripts or data that you put into this service are public.

EMLI documentation built on Nov. 21, 2022, 1:06 a.m.