YiNui: Function that computes the difference (mat_Yi - mat_Nu_i),...

View source: R/RcppExports.R

YiNuiR Documentation

Function that computes the difference (mat_Yi - mat_Nu_i), delates missing values (NAs) and returns a vector. mat_Yi is the outcomes and mat_Nu_i is the expectation

Description

Function that computes the difference (mat_Yi - mat_Nu_i), delates missing values (NAs) and returns a vector. mat_Yi is the outcomes and mat_Nu_i is the expectation

Usage

YiNui(nD, matrixP, tau, tau_i, DeltaT, Yi, x0i, alpha_mu0, xi, alpha_mu,
  G_mat_A_0_to_tau_i)

Arguments

nD

an integer indicating the number of processes

matrixP

a matrix that matches markers to latent processes

tau

a vector of integers indicating times

tau_i

a vector of integers indicating times for individual i

DeltaT

double that indicates the discretization step

Yi

a matrix of the outcomes

x0i

model.matrix for baseline's submodel

alpha_mu0

a vector of parameters associated to the model.matrix for the baseline's submodel

xi

model.matrix for change's submodel

alpha_mu

a vector of parameters associated to the model.matrix for the change's submodel

G_mat_A_0_to_tau_i

matrix containing Prod(A_t)t=0,tau_i where A_t is the transition matric containing at time t

Value

a vector


bachirtadde/CInLPN documentation built on June 30, 2023, 11:47 a.m.