Compute a random linear combination of the columns of a matrix or data frame
Computes Xa where X is an n by p matrix, and a is a random vector of length p.
1 2 3 4
An n by p matrix or data frame. For the lm
method, X is a linear regression model, and
If not NULL, use this to initialize the random number generator
The matrix X is first scaled and centered. a is computed to have random uniform components on (-1,1).
A vector of length n.
Sanford Weisberg, firstname.lastname@example.org
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.