| extract.variance_covariance {PhylogeneticEM} | R Documentation |
extract.variance_covariance return the adequate sub-matrix.
## S3 method for class 'variance_covariance'
extract(struct, what = c("YY", "YZ", "ZZ"),
masque_data = c(rep(TRUE, attr(struct, "ntaxa") * attr(struct, "p_dim")),
rep(FALSE, (dim(struct)[1] - attr(struct, "ntaxa")) * attr(struct, "p_dim"))))
struct |
structural matrix of size (ntaxa+nNode)*p, result
of function |
what: |
sub-matrix to be extracted: "YY" : sub-matrix of tips (p*ntaxa first lines and columns) "YZ" : sub matrix tips x nodes (p*nNodes last rows and p*ntaxa first columns) "ZZ" : sub matrix of nodes (p*nNodes last rows and columns) |
miss; |
missing values of Y_data |
sub-matrix of variance covariance.