Description Usage Arguments Details Value Author(s) See Also Examples
Create a design matrix whose columns are orthogonal to each other.
1 | createOrthogonalX(n, p)
|
n |
Number of rows in X |
p |
Number of columns in X |
First create
X = (I_p I_p ... I_p)^T,
where I_p, the identity matrix of size p, is repeated
ceiling(n/p)
times. If p
does not divide n
, remove
rows at the bottom so that X has n
rows. Divide by the
root mean square of the columns of X.
Matrix with n
rows, p
columns, and column names X1
,
X2
, and so forth.
Laurel Stell and Chiara Sabatti
Maintainer: Laurel Stell <lstell@stanford.edu>
1 2 3 4 5 6 |
[1] -7.105427e-15 0.000000e+00
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.