expectation_gRcpp: Estimate the mean for a STAR process

View source: R/RcppExports.R

expectation_gRcppR Documentation

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)

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

Value

y_hat m x 1 vector of conditional expectations

Note

This function uses Rcpp for computational efficiency.


drkowal/rSTAR documentation built on July 5, 2023, 2:18 p.m.