IARgfit | R Documentation |
Fit an IAR-Gamma model to an irregularly observed time series.
IARgfit(phi, mu, y, st)
phi |
Estimated phi parameter by the iAR-Gamma model. |
mu |
Estimated mu parameter by the iAR-Gamma model. |
y |
Array with the time series observations. |
st |
Array with the irregular observational times. |
Fitted values of the iAR-Gamma model
Eyheramendy_2018iAR
gentime
, IARgsample
, IARgamma
n=300 set.seed(6714) st<-gentime(n) y<-IARgsample(phi=0.9,st=st,n=n,sigma2=1,mu=1) model<-IARgamma(y$y, st=st) phi=model$phi muest=model$mu sigmaest=model$sigma fit=IARgfit(phi=phi,mu=muest,y=y$y,st=st)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.