Learn R Programming

countSTAR (version 1.0.2)

logLikeRcpp: Compute the log-likelihood for STAR

Description

Compute the log-likelihood for a STAR model. The code here assumes that the transformed real-valued process (z_star) has conditionally independent components with means mu and standard deviations sigma.

Usage

logLikeRcpp(g_a_j, g_a_jp1, mu, sigma)

Value

loglike scalar log-likelihood value

Arguments

g_a_j

m x 1 vector of g(a(j))

g_a_jp1

m x 1 vector of g(a(j + 1))

mu

m x 1 vector of conditional expectations

sigma

m x 1 vector of conditional standard deviations