Displaying 1 result from an estimated 1 matches for "corr_mat".
2009 Dec 08
1
data manipulation/subsetting and relation matrix
Hi List,
Here is some example data.
myDat <- read.table(textConnection("group id
1 101
1 201
1 301
2 401
2 501
2 601
3 701
3 801
3 901"),header=TRUE)
closeAllConnections()
corr_mat <-read.table(textConnection("1 1 .5 0 0 0 0 0 0 0
2 .5 1 0 0 0 0 0 0 0
3 0 0 1.0 0 0 0 0 0 0
4 0 0 0 1 .5 .5 0 0 0
5 0 0 0 .5 1 .5 0 0 0
6 0 0 0 .5 .5 1 0 0 0
7 0 0 0 0 0 0 1 0 0
8 0 0...