On this Picostat.com statistics page, you will find information about the JohnsonJohnson data set which pertains to Quarterly Earnings per Johnson & Johnson Share. The JohnsonJohnson data set is found in the datasets R package. You can load the JohnsonJohnson data set in R by issuing the following command at the console data("JohnsonJohnson"). This will load the data into a variable called JohnsonJohnson. If R says the JohnsonJohnson data set is not found, you can try installing the package by issuing this command install.packages("datasets") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the JohnsonJohnson R data set. The size of this file is about 1,027 bytes.
Quarterly Earnings per Johnson & Johnson Share
Quarterly earnings (dollars) per Johnson & Johnson share 1960–80.
A quarterly time series
Shumway, R. H. and Stoffer, D. S. (2000)
Time Series Analysis and its Applications.
Second Edition. Springer. Example 1.1.
JJ <- log10(JohnsonJohnson)
## This example gives a possible-non-convergence warning on some
## platforms, but does seem to converge on x86 Linux and Windows.
(fit <- StructTS(JJ, type = "BSM"))
sm <- tsSmooth(fit)
plot(cbind(JJ, sm[, 1], sm[, 3]-0.5), plot.type = "single",
col = c("black", "green", "blue"))
abline(h = -0.5, col = "grey60")monthplot(fit)
Dataset imported from https://www.r-project.org.