cranvas (version 0.8.5)

pigs: Temporal measurements on UK Pig production

Description

Multivariate time series data originally from Andrews and Herzberg (1985).

Arguments

Format

data.frame: 48 obs. of 11 variables
YEAR
Year, from 1967 to 1978
QUARTER
Quarter index, take value in 1,2,3,4
Q1
Whether is the first quarter
Q2
Whether is the second quarter
Q3
Whether is the third quarter
GILTS
Number of sows in pig for the first time
PROFIT
Ratio of all-pig price to all fattener feed price
S.HERDSZ
Ratio of sow and boar slaughter to total breeding herd size
PRODUCTION
Number of clean pig meat slaughtered
HERDSZ
Actual breeding herd size

Source

Andrews, D.F. and Herzberg, A.M. (1985), Data - A Collection of Problems from Many Fields for the Student and Research Worker, Springer-Verlag, New York, NY. URL: http://lib.stat.cmu.edu/datasets/Andrews/

Examples

Run this code
library(cranvas)
qpig <- qdata(pigs)
qtime(TIME, c("GILTS", "PROFIT", "PRODUCTION", "HERDSZ"), qpig, shift = c(1, 4))

Run the code above in your browser using DataLab