goodsbasis <- create.bspline.basis(rangeval=c(1919,2000),
nbasis=161, norder=8)
LfdobjNonDur <- int2Lfd(4)
argvals = seq(1919,2000,len=length(nondurables))
logNondurSm <- smooth.basisPar(argvals,
y=log10(nondurables), fdobj=goodsbasis,
Lfdobj=LfdobjNonDur, lambda=1e-11)
oldpar <- par(no.readonly=TRUE)
phaseplanePlot(1964, logNondurSm$fd)
par(oldpar)
Run the code above in your browser using DataLab