toy.learn {sisal} | R Documentation |
Toy Data for SISAL (Learning Set)
Description
Numeric matrix with independent and dependent variables and noise
Usage
toy.learn
Format
The format is:
num [1:1000, 1:12] -0.62067 1.36985 0.00122 0.75527 -1.82271 ... - attr(*, "dimnames")=List of 2 ..$ : NULL ..$ : chr [1:12] "y" "noise" "X1" "X2" ...
Details
This is the learning set of the toy data, i.e. 1000 rows of the whole 1500 row dataset.
Columns "X1"
, "X2"
, ..., "X10"
were generated
with rnorm
to follow a standard normal distribution.
Column "y"
is a linear combination of "X1"
, "X2"
,
"X3"
, coefficients (1:3)/sqrt(sum((1:3)^2))
, yielding a
theoretical standard normal distribution.
Column "noise"
was also generated from the standard normal
distribution.
Use file.show(system.file("toyDataSrc", "sisalToy.R",
package="sisal"))
to view the script that generated the data.
See Also
Examples
library(graphics)
plot(as.data.frame(toy.learn))
[Package sisal version 0.48 Index]