diagnos(obs.states, chain.id, X=NULL, fit)
diagnos.envel( obs.states, chain.id, X=NULL, fit, perc=c( 0.025, 0.975), B=100, contr=list( print.iter=50))
Usage of diagnos.envel will produce, in addition to the functionality of diagnos, simulation envelopes
RMC.mod
for estimation of the Markov models and hrplot
to plot the calculated residuals from diagnos.envel.#estimate a model for stationary example data, dataEG1
fm.est <- RMC.mod( states=dataEG1[,2], chain.id=dataEG1[,1], X=dataEG1[,3])
#calculate residuals
res <- diagnos( dataEG1[,2], dataEG1[,1], X=dataEG1[,3, drop=FALSE], fit=fm.est)
res.envel <- diagnos.envel( dataEG1[,2], dataEG1[,1], X=dataEG1[,3,drop=FALSE], fit=fm.est, B=25)
Run the code above in your browser using DataLab