Hi,
Here is my problem. Say I have two matrices,
Matrix A:
a b c
4 5 2
3 2 1
4 5 6
Matrix B:
d e f g h
3 4 5 2 1
2 3 7 8 6
8 5 1 3 4
I would like to correlate vector a of matrix A with with vectors
d,e,f,g,h of
matrix B and save the p-values (or some type of statistic) in a
seperate result
: http://www.med.kuleuven.be/biostat/
http://www.student.kuleuven.be/~m0390867/dimitris.htm
- Original Message -
From: Frank Johannes [EMAIL PROTECTED]
To: r-help@stat.math.ethz.ch
Sent: Monday, December 05, 2005 4:28 PM
Subject: [R] loop problem
Hi,
Here is my problem. Say I have
Hello Frank
Hi,
Here is my problem. Say I have two matrices,
Matrix A:
a b c
4 5 2
3 2 1
4 5 6
Matrix B:
d e f g h
3 4 5 2 1
2 3 7 8 6
8 5 1 3 4
Please produce a reproducable example, like
A - matrix(rnorm(9),ncol=3)
B - matrix(rnorm(15), ncol=5)
Here is just the loop for
1) You need to simplify your codes a bit and show people how the input
might look like if you want useful responses. Perhaps a small
reproducible example or brief description of what you are trying to do
might help. See the posting guide for more details.
2) I am guessing here but are you
Dear everyone
I am a new user,would like to combine these code together by using a
loop,each function has three value as Tr = 1 - 3,how can i combine
together?
logitTr1 -logit[logit[,Study]logit[,Tr]==1,]
(number of row in each group (1-3) is difference but equal in colume)
fnTr1 -