Learn R Programming

countSTAR (version 1.0.2)

expectation_gRcpp: Estimate the mean for a STAR process

Description

Estimate the conditional expectation for a STAR process under a generic link function g.

Usage

expectation_gRcpp(g_a_j, g_a_jp1, mu, sigma, Jmax)

Value

y_hat m x 1 vector of conditional expectations

Arguments

g_a_j

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

g_a_jp1

Jmax 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

Jmax

m x 1 vector of maximum integer values to consider