Skip to contents

This function computes the ratio \( f(u_ij | D) \), where \( f(u_ij | D) \) is the likelihood of a given value of \( u_ij \) conditioned on the observed data.

Usage

f_uz_given_D_gaussian(
  u_ij,
  method = "gl",
  period = c(0, 1),
  y_tilde,
  v_tilde,
  tau_tilde,
  n_samples = NULL,
  n_intervals = NULL,
  n_points = 30
)

Arguments

u_ij

Numeric, the integration variable.

method

Character, the integration method to use ("mc", "ti", "gl").

period

Numeric vector, the integration period.

y_tilde

Numeric, parameter for the exponential function in the integrand.

v_tilde

Numeric, parameter for the exponential function in the integrand.

tau_tilde

Numeric, parameter for the exponential function in the integrand.

n_samples

Integer, number of samples for Monte Carlo integration.

n_intervals

Integer, number of intervals for Trapezoidal integration.

n_points

Integer, number of points for Gaussian-Legendre integration.

Value

The likelihood estimate \( f(u_ij | D) \).