# NOT RUN {
kappa <- 1.5
V0 <- theta <- 0.04
sigma_v <- 0.2
theta1 <- kappa*theta
theta2 <- kappa
theta3 <- sigma_v
# OU
r <- simdiff(n = 10, horizon = 5,
frequency = "quart",
model = "OU",
x0 = V0, theta1 = theta1, theta2 = theta2, theta3 = theta3)
# Stochastic discount factors
esgdiscountfactor(r, 1)
# }
Run the code above in your browser using DataLab