Learn R Programming

countSTAR (version 1.0.2)

expectation2_gRcpp: Compute E(Y^2) for a STAR process

Description

Compute the conditional expectation of Y^2 for a STAR process Y under a generic link function g.

Usage

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

Value

y2_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