Displaying 5 results from an estimated 5 matches for "mn3".
Did you mean:
mn
2012 Feb 13
2
Error in apply(x2, 1, diff) : dim(X) must have a positive length
...r any help!
>library(MASS)
> dif.mns = function(x2,tr1=.2,tr2=.3){
+ #generates four different 'means' using
+ #difference scores from x2, an n x 2 matrix
+ #for use w/ bootstrap comparisons
+ diffs = apply(x2,1,diff)
+ mn1=mean(diffs)
+ mn2=mean(diffs,tr=.2)
+ mn3=mean(diffs,tr=.3)
+ mn4=median(diffs)
+ mns=c(mn1,mn2,mn3,mn4)
+ list(mnds=round(mns,3)) }
> dif.mns(shoes)
Error in apply(x2, 1, diff) : dim(X) must have a positive length
--
View this message in context: http://r.789695.n4.nabble.com/Error-in-apply-x2-1-diff-dim-X-must-have-a-positi...
2009 Jul 15
1
Matrix multiplication precision
...esults. Here is how I am using it
#Mn.mat<-(T.mat %*% Rz.mat %*% Q.mat %*% Rz.mat %*% T.mat) # I was doing this in one step which I have broken down into multiple steps as below.
Mn1.mat<-matrix(as.numeric(T.mat %*% Rz.mat),nrow=4)
Mn2.mat<-matrix(as.numeric(Mn1.mat %*% Q.mat),nrow=4)
Mn3.mat<-matrix(as.numeric(Mn2.mat %*% Rz.mat),nrow=4)
Mn.mat<-matrix(as.numeric( Mn3.mat %*% T.mat),nrow=4)
For getting the inverse I am doing the following
Mn.mat.inv<-qr.solve(Mn.mat)
Will I run into precision problems when I do the above?
Thanks ../Murli
2009 Jan 26
0
why two diff. se in nlsList?
...t value Pr(>|t|)
Qn1 38.13977 0.9911148 38.48169 1.991990e-06
Qn2 42.87169 1.0932089 39.21638 2.583953e-06
Qn3 44.22800 1.0241029 43.18706 1.809264e-07
Qc1 36.42874 1.1941594 30.50576 1.140085e-05
Qc3 40.68373 1.2480923 32.59673 1.424635e-04
Qc2 39.81950 1.0167249 39.16447 2.692304e-06
Mn3 28.48286 1.0624246 26.80930 1.066434e-06
Mn2 32.12827 1.0174826 31.57624 3.488786e-06
Mn1 34.08482 1.3400596 25.43530 4.199333e-06
Mc2 13.55519 1.0506404 12.90184 4.385886e-06
Mc3 18.53506 0.8363371 22.16219 1.461563e-06
Mc1 21.78723 1.4113318 15.43735 5.756870e-06
> summary(fm1)$coef[,,1...
2008 Apr 14
5
Equivalent to a BY command in SAS
Hi,
I'm very new to R and absolutely love it. Does anyone know how to use
something in R that functions like a BY command in SAS?
For example, let's say you have a variable x, and you want to see the mean.
Easy...
> mean(x)
But what if you want to see the mean of x conditional on another discrete
variable? My best attempts so far are something like...
> mean(x, y_cat=1)
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