data(SimulatedPedigree)
Xgen <- as.matrix(SimulatedPedigree[,6:ncol(SimulatedPedigree)])
data(GTC)
mafvec <- mafvector(Xgen)
ii <- 1:3
GTCsubset <- list(length = 9)
for (k in 1:9) {
GTCsubset[[k]] <- matrix(numeric(3^2), ncol = 3)
GTCsubset[[k]] <- GTC[[k]][ii,ii]
}
output <- Jacquard.cls(GTCsubset,mafvec=mafvec,
eps=1e-06)
Delta.cls <- output$delta
print(Delta.cls)
print(output$convergence)
# A particular estimate of a Jacquard coefficient for a particular pair can
# be extracted from Delta.cls
#
# E.g., Delta\_9 of the first pair of individuals (1,2) can be extracted by
#
D9_12 <- Delta.cls[[9]][1,2]
Run the code above in your browser using DataLab