[R] Generating these matrices going backwards

francogrex francogrex at mail.com
Wed Nov 14 20:18:55 CET 2007


I have generated the following:

x= 
        E1      E2      E3 
D1      0       0       1 
D2      1       0       3 
D3      0       2       0 

y= 
        E1      E2      E3 
D1      0       0       1.75 
D2      1.75    0       1.3125 
D3      0       3.5     0 

Where x and y are linked by: 
y =sum(x) * x / (rowSums(x)%o%colSums(x)) 

N=x[x[1:3,]>0] 
R=y[y[1:3,]>0] 

Now suppose I ONLY have N and R linked in this way below where each N 
corresponds to an R 

N       R 
1       1.7500 
2       3.5000 
1       1.7500 
3       1.3125 

Is there a way to generate matrix "x" and matrix "y" having only the N 
and the R as above? 


-- 
View this message in context: http://www.nabble.com/Generating-these-matrices-going-backwards-tf4807447.html#a13754521
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list