deriv_ar1 | R Documentation |
Obtain the first derivative of the AR(1) process.
deriv_ar1(phi, sigma2, tau)
phi |
A |
sigma2 |
A |
tau |
A |
A matrix
with the first column containing the partial derivative with respect to phi
and the second column contains the partial derivative with respect to sigma^2
Taking the derivative with respect to phi yields:
d/dphi nu[j]^2(phi,sigma2) = (2*sigma2)/((phi-1)^4*(phi+1)^2 * tau[j]^2)*((phi^2-1)*tau[j]*(-2*phi^(tau[j]/2)+phi^(tau[j]) - phi - 1) - (phi*(3*phi+2)+1)*(-4*phi^(tau[j]/2)+phi^(tau[j])+3))
Taking the derivative with respect to sigma^2 yields:
d/dsigma2 nu[j]^2(phi,sigma2) = ((phi^2-1)*tau[j]+2*phi*(-4*phi^(tau[j]/2) + phi^(tau[j]) + 3))/((phi-1)^3*(phi+1)*tau[j]^2)
James Joseph Balamuta (JJB)
deriv_ar1(.3, 1, 2^(1:5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.