# R Dataset / Package datasets / JohnsonJohnson

On this R-data 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 with the library() command. 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

### Description

Quarterly earnings (dollars) per Johnson & Johnson share 1960–80.

### Usage

JohnsonJohnson

### Format

A quarterly time series

### Source

Shumway, R. H. and Stoffer, D. S. (2000) *Time Series Analysis and its Applications*. Second Edition. Springer. Example 1.1.

### Examples

require(stats); require(graphics) JJ <- log10(JohnsonJohnson) plot(JJ) ## 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")) tsdiag(fit) 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.