testMatX | R Documentation |
Construction of test data
testMatX(...)
testResponse0(x, beta = rep(1, ncol(x)))
testResponse(y0, k = 1:4, .sd = sd(y0))
testRook(n)
... |
matrices |
x |
a matrix |
beta |
a vector with parameters |
y0 |
a response vector (numeric) |
k |
values in 1 to 4 (integer) |
.sd |
the standard deviation used for random numbers |
n |
dimension |
Weihs / Mersmann / Ligges (2014): Foundations of Statistical Algorithms: With References to R Packages
## Examples from Weihs et. al. (2014) p. 108
library("Matrix")
testMatX(Matrix(998), Matrix(998))
Z <- Matrix(c(998, 0, 0, 0), 2, 2)
testMatX(Z, Z)
testResponse0(testMatX(Matrix(1)))
library("magrittr")
Matrix(1) %>% testMatX %>% testResponse0 %>% testResponse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.