Displaying 3 results from an estimated 3 matches for "200x10".
Did you mean:
200,10
2005 Mar 25
2
How to split a single vector into a multiple-column and multiple-row matrix
Dear List,
I have, say, a 2000x1 numeric vector and would like to
split it into, say, a 200x10 matrix. Any help is
appreciated.
2006 Dec 25
1
Higher Dimensional Matrices
...i have to to it
for
x [,1]...x[,10]. That would give me out 10 matrices. Controlling for 2
Variables 100 matrices. how
can I run a loop to get f.e the 10 or 100 matrices at once? I appreciate for
every hint. have nice holidays.
greetings lars
x<-read.table("C:/.....dat")
dim(x) #200x10
a<-matrix(0,200,10)
for (i in 1:10)
a[,i] <- residuals(lm(x[,i]~1+x[,1]+x[,2]))
b<-matrix(0,200,10)
for (i in 1:10)
b[,i] <- residuals(lm(x[,i]~1+x[,1]+x[,2]))
#a=round(a,5)
#b=round(b,5)
d=cor(a,b)
d
--
View this message in context: http://www.nabble.com/-R--Higher-Dimensional-Matrice...
2006 Dec 26
1
Colored Dendrogram
...set of two variables to condition upon at a
> time, this would give you choose(10, 2) = 45 matrices, wouldn't it?
> Where do you get '10 or 100' matrices from?
>
> >
> > greetings lars
> >
> > x <- read.table("C:/.....dat")
> > dim(x) #200x10
> > a <- matrix(0,200,10)
> > for (i in 1:10)
> > a[,i] <- residuals(lm(x[,i]~1+x[,1]+x[,2]))
> > b <- matrix(0,200,10)
> > for (i in 1:10)
> > b[,i] <- residuals(lm(x[,i]~1+x[,1]+x[,2]))
> > #a=round(a,5)
> > #b=round(b,5)
> > d <...