Skip to content

Commit c315bfc

Browse files
committed
v2.4
1 parent c4d04a3 commit c315bfc

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

astsa_2.4.tar.gz

-3.94 KB
Binary file not shown.

astsa_build/man/USpop20.Rd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,17 @@ The webpages for the texts and some help on using R for time series analysis can
3030
\url{https://nickpoison.github.io/}.
3131
}
3232
\examples{
33-
\dontrun{
34-
35-
# This is from the 2nd edition of Time Series: A Data Analysis Approach ...
3633
t = time(USpop20) - 1960
3734
reg = lm( USpop20~ poly(t, 10, raw=TRUE) )
3835
b = as.vector(coef(reg))
3936
g = function(s){b[1] + b[2]*s + b[3]*s^2 + b[4]*s^3 + b[5]*s^4 + b[6]*s^5 + b[7]*s^6 +
4037
b[8]*s^7 + b[9]*s^8 +b[10]*s^9 + b[11]*s^10 }
4138
t = 1900:2044
42-
tsplot(t, g(t-1960), ylab="Population", xlab='Year',cex.main=1, col=4,
39+
tsplot(t, g(t-1960), ylab="Population", xlab='Year', cex.main=1, col=4,
4340
main="U.S. Population by Official Census")
4441
points(time(USpop20), USpop20, pch=21, bg=rainbow(13), cex=1.25)
4542
mtext(bquote('\u00D7'~10^6), side=2, line=1.5, adj=1, cex=.8)
43+
4644
}
4745
}
4846
\seealso{\code{\link{USpop}} }

fun_with_astsa/fun_with_astsa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ tsplot(0:30, u[[1]][,2:3], type='o', col=2:3, xlab='ORDER', nxm=5, lwd=2, gg=TRU
11341134
```r
11351135
gr = diff(log(econ5))
11361136
gr = scale(gr) # for comparable spectra
1137-
tsplot(gr, ncol=2, col=2:6, lwd=2, byrow=FALSE)
1137+
tsplot(gr, ncol=2, col=2:6, lwd=2, byrow=FALSE, reset=FALSE)
11381138
gr.spec = mvspec(gr, spans=c(7,7), detrend=FALSE, taper=.25, col=2:6, lwd=2, main='spectra')
11391139
round(gr.spec$fxx, 2)
11401140
```

0 commit comments

Comments
 (0)