search for: fr3z

Displaying 2 results from an estimated 2 matches for "fr3z".

Did you mean: fr32
2005 Mar 24
1
RE: [R] Mapping actual to expected columns for princomp object
...> rm(x1,x2,y,frx,frxy) > > z1 <- rnorm(10) > z2 <- rnorm(10) > frz <- data.frame(z1,z2) > > predict(lm1, frz) # gives error: Object "x1" not found > predict(pca1, frz) # gives no error, indicating column names ignored > > z3 <- rnorm(10) > fr3z <- data.frame(frz,z3) > predict(pca1,fr3z) # gives error due to unexpected number of columns > > loadings(pca1) # shows linear combos of variables corresponding to PCs > > ______________________________________________ > R-help@stat.math.ethz.ch mailing list > https://stat...
2005 Mar 24
0
Mapping actual to expected columns for princomp object
...) lm1 <- lm(y~x1+x2,frxy) pca1 <- princomp(frx) rm(x1,x2,y,frx,frxy) z1 <- rnorm(10) z2 <- rnorm(10) frz <- data.frame(z1,z2) predict(lm1, frz) # gives error: Object "x1" not found predict(pca1, frz) # gives no error, indicating column names ignored z3 <- rnorm(10) fr3z <- data.frame(frz,z3) predict(pca1,fr3z) # gives error due to unexpected number of columns loadings(pca1) # shows linear combos of variables corresponding to PCs