Learn R Programming

saeRobust (version 0.1.0)

testMatX: Construction of test data

Description

Construction of test data

Usage

testMatX(...)
testResponse0(x, beta = rep(1, ncol(x)))
testResponse(y0, k = 1:4, .sd = sd(y0))
testRook(n)

Arguments

...
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

References

Weihs / Mersmann / Ligges (2014): Foundations of Statistical Algorithms: With References to R Packages

Examples

Run this code
## 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

Run the code above in your browser using DataLab