Description Usage Format Source Examples
The exHe
data frame has 10 rows and 2 columns. It is an
example for which smooth.spline
cannot be used.
1 |
This data frame contains the following columns:
only values 0, 1, and 2.
10 randomly generated values
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.