evaluate_d_measure_LNA: Evaluate the log-density of a possibly time-verying...

View source: R/RcppExports.R

evaluate_d_measure_LNAR Documentation

Evaluate the log-density of a possibly time-verying measurement process by calling measurement process density functions via external Xptr.

Description

Evaluate the log-density of a possibly time-verying measurement process by calling measurement process density functions via external Xptr.

Usage

evaluate_d_measure_LNA(
  emitmat,
  obsmat,
  censusmat,
  measproc_indmat,
  parameters,
  param_inds,
  const_inds,
  tcovar_inds,
  param_update_inds,
  census_indices,
  param_vec,
  d_meas_ptr
)

Arguments

emitmat

matrix of emission probabilities

obsmat

matrix containing the data

censusmat

matrix containing the state of the latent process at observation times

measproc_indmat

logical matrix indicating which compartments are observed at every observation time

parameters

matrix containing the LNA parameters, constants and time-varying coariates.

param_inds

indices for the model parameters.

const_inds

indices for the constants.

tcovar_inds

indices for the time-varying covariates.

param_update_inds

logical vector indicating when model parameters should be updated.

census_indices

vector of indices when the LNA path has been censused.

param_vec

vector for keeping the current lna parameters

d_meas_ptr

external pointer to measurement process density function


fintzij/stemr documentation built on March 25, 2022, 12:25 p.m.