Alfalfa: Example SAS data set

Description Usage Format Details Source References Examples

Description

Alfalfa data from Brian Yandell's book Practical Data Analysis for Designed Experiments.

Usage

1

Format

A data frame with 40 observations on the following 6 variables.

POP

Population, a factor with levels MAX and min

SAMPLE

Sample ID (0:5)

REP

Replicate (always 1)

SEEDWT

Seed weight

HARV1

Harvest 1 volume

HARV2

Harvest 2 volume

Details

Population "MAX" has slightly higher harvest volumes (HARV1 and HARV2) than population "min". (Surprise! Shock! Awe!)

Source

http://pages.stat.wisc.edu/~yandell/pda/data/Alfalfa/alfalfa.dat.

References

Yandell, Brian S. Practical data analysis for designed experiments. Vol. 39. Crcd Press, 1997.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
data(Alfalfa)

# go were the data is...
here <- getwd()
setwd(system.file("extdata",package="SASxport"))

# Description of the file contents
lookup.xport("Alfalfa.xpt")

# Load the file contents
Alfalfa <- read.xport("Alfalfa.xpt")
head(Alfalfa)

# return home
setwd(here)

# Just for fun, plot the data
par(mfrow=c(1,2))
plot( HARV1 ~ POP, data=Alfalfa)
plot( HARV2 ~ POP, data=Alfalfa)

SASxport documentation built on March 13, 2020, 1:59 a.m.