exHe: Small Dataset Example of He

Description Usage Format Source Examples

Description

The exHe data frame has 10 rows and 2 columns. It is an example for which smooth.spline cannot be used.

Usage

1

Format

This data frame contains the following columns:

x

only values 0, 1, and 2.

y

10 randomly generated values

Source

Originally found at the bottom of http://ux6.cso.uiuc.edu/~x-he/ftp.html, the web resource directory of Xuming He at the time, say 2006.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(exHe)
plot(exHe, main = "He's 10 point example and cobs() fits")
tm <- tapply(exHe$y, exHe$x, mean)
lines(unique(exHe$x), tm, lty = 2)
## 4 warnings :
cH  <- cobsOld(exHe$x, exHe$y, constraint = "increase")
lines(cH$z, cH$fit, col = 3)
cHn <- cobsOld(exHe$x, exHe$y, constraint = "none")
lines(cHn$z, cHn$fit, col = 4)
cHd <- cobsOld(exHe$x, exHe$y, constraint = "decrease")
lines(cHd$z, cHd$fit, col = 5)

cobs99 documentation built on May 2, 2019, 6:12 p.m.

Related to exHe in cobs99...