% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/merton_fit.R
\name{mertonLogLik}
\alias{mertonLogLik}
\title{Negative Log-Likelihood for the Merton Jump-Diffusion Model}
\usage{
mertonLogLik(params, log_returns, dt = 1/252, N_max = 50L)
}
\arguments{
\item{params}{Named numeric vector:
\code{c(mu, sigma, lambda, mu_j, sigma_j)}.}

\item{log_returns}{Numeric vector of observed log asset returns.}

\item{dt}{Numeric. Length of each time step (default 1/252).}

\item{N_max}{Integer. Number of mixture terms (default 50).}
}
\value{
Scalar. Negative log-likelihood. Returns \code{Inf} for
invalid parameter values.
}
\description{
Evaluates the negative log-likelihood of observing \code{log_returns}
under the Merton (1976) model. The density is approximated by a
Gaussian mixture truncated at \code{N_max = 50} terms.
}
\examples{
ret <- jdSampleData("merton", n = 200, seed = 42)
p   <- c(mu = 0.05, sigma = 0.2, lambda = 1, mu_j = -0.1, sigma_j = 0.15)
mertonLogLik(p, ret)

}
