R/Gamma_v_f.R

Defines functions Gamma_v_f

# - gamma_v and its derivative for the dynamic model 

Gamma_v_f <- function(Rho, TI) {
  rho_power <- Rho^(0:(TI-1))
  rho_d <- c(0,(Rho^(0:(TI-2)))*(1:(TI-1)) )
  
  list(Gamma_v= rho_power %*% t(rho_power),
       d.Gamma_v = rho_power %*% t(rho_d) +
                  rho_d %*% t(rho_power))
 }

Try the sae2 package in your browser

Any scripts or data that you put into this service are public.

sae2 documentation built on Aug. 23, 2023, 5:07 p.m.