Displaying 5 results from an estimated 5 matches for "frz".
Did you mean:
fri
2005 Mar 24
1
RE: [R] Mapping actual to expected columns for princomp object
...modification to stats:predict.princomp so that it will check
for column (variable) names?
In src/library/stats/R/princomp-add.R, insert the following after line 4:
if (!is.null(cn <- names(object$center))) newdata <- newdata[, cn]
Now Dana's example looks like:
> predict(pca1, frz)
Error in "[.data.frame"(newdata, , names(object$center)) :
undefined columns selected
> names(frz) <- c("x2", "x1")
> predict(pca1, frz)
Comp.1 Comp.2
1 -3.29329963 -1.24675774
2 0.15760569 0.09364550
3 1.90206906 0.06292855
4 -0...
2005 Mar 24
0
Mapping actual to expected columns for princomp object
...a Honeycutt
P.S. Here's a script that demonstrates the problem:
x1 <- rnorm(10)
x2 <- rnorm(10)
y <- rnorm(10)
frx <- data.frame(x1,x2)
frxy <- data.frame(x1,x2,y)
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) # sh...
2020 Mar 26
0
[PATCH nbdkit 9/9] tests/old-plugins: Add plugin from nbdkit 1.18.2.
...gqNzd49QrRwFQ6PNd$m}DYkyLq8fpF)vk>QbERRJEu|XD)$@
zlZ?!RDnH4nloppxDW0ILi6+(NWI|ID$yhABM%9{vjIHe2YHv-|9QW+1>nsNN8_5jf
z;ab!PEK{QqMrw#QH~TSEupp>3_#=_1reciL1V%9$R}(nl3QM^!xu?`3*of1w0W}a@
z8EObJo-wRD{M2Yd4TKVOhBk1GdKM2hD+*4Ss^jU1CJZZMemko<N@!UmigTaK;35oM
zfO(3})dtl-lF_wzsF}6QXGGKZ>(B*D;HZ~frZ)T6_&6WA9WHBV2nGYtmP~NfboiFe
zvf^AHmnXjQEVQms|Dp`FeAada(L5{rSLm{|k2yicdux5}8t=?GRh9jSZn>s9mT
z&aJP59ifCT7F`vL`=X7$32IRh^zm`@(KwD7L$*?(NokE06{RR1T#*dLgMl$>od_ou
zCm3v;B3>CR7IHpB2U90;@(?LSA-z5t0TBqCD(Ds(wj$ZP7aGDre<T^B85t*Df&0W+
zVa30+ArNd_))e~Y@^Et`8e0)hXvvkUR<F6mJ)@...
2020 Mar 26
15
[PATCH nbdkit 0/9] Create libnbdkit.so
This creates libnbdkit.so as discussed in the following thread:
https://www.redhat.com/archives/libguestfs/2020-March/thread.html#00203
test-delay-shutdown.sh fails for unclear reasons.
This series starts by reverting "tests: Don't strand hung nbdkit
processes" which is because several other tests fail randomly unless I
revert this patch. I didn't investigate this yet so it
2008 Jun 30
4
Rebuild of kernel 2.6.9-67.0.20.EL failure
Hello list.
I'm trying to rebuild the 2.6.9.67.0.20.EL kernel, but it fails even without
modifications.
How did I try it?
Created a (non-root) build environment (not a mock )
Installed the kernel.scr.rpm and did a
rpmbuild -ba --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee
prep-out.log
The build failed at the end:
Processing files: kernel-xenU-devel-2.6.9-67.0.20.EL
Checking