Description Usage Arguments Value Author(s) References See Also Examples
The function transforms the matrix X
so that each column has unit length, it is to say, a module equal to 1.
1 | lu(X)
|
X |
A numeric matrix that should contain more than one column. |
Original matrix transformed so that each column has a module equal to 1.
R. Salmer<f3>n (romansg@ugr.es) and C. Garc<ed>a (cbgarcia@ugr.es).
R. Salmer<f3>n, C. B. Garc<ed>a and J. Garc<ed>a (2018). Variance Inflation Factor and Condition Number in multiple linear regression. Journal of Statistical Computation and Simulation, 88 (12), 2365-2384.
L. R. Klein and A.S. Goldberger (1964). An economic model of the United States, 1929-1952. North Holland Publishing Company, Amsterdan.
H. Theil (1971). Principles of Econometrics. John Wiley & Sons, New York.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Henri Theil's textile consumption data modified
data(theil)
head(theil)
cte = array(1,length(theil[,2]))
theil.X = cbind(cte,theil[,-(1:2)])
lu(theil.X)
# Klein and Goldberger data on consumption and wage income
data(KG)
head(KG)
cte = array(1,length(KG[,1]))
KG.X = cbind(cte,KG[,-1])
lu(KG.X)
# random
x1 = sample(1:10,5)
x2 = sample(1:10,5)
x = cbind(x1, x2)
x
norm(x[,1],"2")
norm(x[,2],"2")
x.lu = lu(x)
x.lu
norm(x.lu[,1],"2")
norm(x.lu[,2],"2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.