residuals.ar: Calculate residuals for 'stats::ar'

Description Usage Arguments Value Examples

View source: R/tslib.R

Description

Calculate residuals for stats::ar

Usage

1
2
## S3 method for class 'ar'
residuals(object, ...)

Arguments

object

stats::ar instance

...

other keywords

Value

ts Residuals extracted from the object object.

Examples

1

Example output

Loading required package: ggplot2
Time Series:
Start = 1 
End = 100 
Frequency = 1 
  [1]            NA            NA            NA  -2.647920435  -4.186768524
  [6]  -1.857340170  -5.111171095  -0.836745590  -0.189990553  -2.866219812
 [11]  -1.495939131   4.696108053   0.608072119   3.672404222   9.901744870
 [16]   6.854224430   3.092894332   1.800472508  -2.591026520  -1.786582668
 [21]   0.256705243   3.119660907  -5.618015259  -9.564724427   2.196318736
 [26]   9.577814843   6.400317893   0.476364934  -3.182778708  -2.360962305
 [31]  -3.530316159  -4.200550971  -1.007830120   1.272203099  -1.890756597
 [36]  -3.003984323   0.363411162   5.818119014   3.304799551   0.902658964
 [41]   0.698223174   7.356743048   7.577540888   5.941827123   1.486445603
 [46]   0.981718848   2.278500850   1.645559502   3.878795847   2.683189799
 [51]  -1.334182752   2.578504882   4.496463394   1.683189799  -3.159171284
 [56]  -0.975280175  -5.669331597 -10.181590660  -6.058472790  -5.626571047
 [61]  -5.905306831  -5.816983963  -0.670436217  -3.340720929  -1.208660539
 [66]  -5.753952687  -8.517157479  -4.607355042  -1.076712927   0.527091032
 [71]  -1.615610916  -4.729175476  -5.933274432  -1.178225715   0.255887556
 [76]  -1.653578048  -3.612725721   0.008163856   3.791963228   4.803341333
 [81]   6.243224996   9.108392188   4.914997669  -0.033058833   5.216926295
 [86]   7.851292726   4.445593276   3.185817804   2.348440666   6.240196885
 [91]  12.140446013  10.918250939   3.632223274   3.497777200   8.161617854
 [96]  10.061866982   8.539717776   0.813469614   0.717327505   4.186235778

ggfortify documentation built on July 8, 2021, 1:07 a.m.