toy.learn | R Documentation |
Numeric matrix with independent and dependent variables and noise
toy.learn
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" ...
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.
toy.test
, testSisal
library(graphics)
plot(as.data.frame(toy.learn))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.