deriv_ar1 {simts} | R Documentation |
Analytic D matrix for AR(1) process
Description
Obtain the first derivative of the AR(1) process.
Usage
deriv_ar1(phi, sigma2, tau)
Arguments
phi |
A double corresponding to the phi coefficient of an AR(1) process.
|
sigma2 |
A double corresponding to the error term of an AR(1) process.
|
tau |
A vec containing the scales e.g. 2τ
|
Value
A matrix
with the first column containing the partial derivative with respect to ϕ
and the second column contains the partial derivative with respect to σ2
Process Haar WV First Derivative
Taking the derivative with respect to ϕ
yields:
∂ϕ∂νj2(ϕ,σ2)=(ϕ−1)4(ϕ+1)2τj22σ2((ϕ2−1)τj(−2ϕ2τj+ϕτj−ϕ−1)−(ϕ(3ϕ+2)+1)(−4ϕ2τj+ϕτj+3))
Taking the derivative with respect to σ2
yields:
∂σ2∂νj2(ϕ,σ2)=(ϕ−1)3(ϕ+1)τj2(ϕ2−1)τj+2ϕ(−4ϕ2τj+ϕτj+3)
Author(s)
James Joseph Balamuta (JJB)
[Package
simts version 0.2.2
Index]