Relatedness if often defined in terms of the kinship matrix. It may be
helpful to search for this. Several packages in R use this matrix
including the kinship package.
On Wed, Feb 16, 2011 at 3:14 PM, Val wrote:
> Hi all,
>
> I want to construct relatedness among individuals and have a look at th
] On
Behalf Of Val
Sent: Wednesday, February 16, 2011 3:14 PM
To: r-h...@stat.math.ethz.ch
Subject: [R] covar
Hi all,
I want to construct relatedness among individuals and have a look at the
following script.
#
rm(list=ls())
N=5
id = c(1:N)
dad = c(0,0,0,3,3)
mom = c(0,0
Hi all,
I want to construct relatedness among individuals and have a look at the
following script.
#
rm(list=ls())
N=5
id = c(1:N)
dad = c(0,0,0,3,3)
mom = c(0,0,2,1,1)
sex = c(2,2,1,2,2) # 1= M and 2=F
A=diag(nrow = N)
for(i in 1:N){
for(j in i:N)
3 matches
Mail list logo