R/vt.R

Defines functions vt

Documented in vt

vt <-
function(v,l,vsiga, il, jl){
# vt(() - sampling variance of total of v components for traits il,jl
  vtot <- 0
  ijb <- (il-1)*l+jl
  for(iv in 1 : v) {
    for(jv in 1:v) {
      vtot <- vtot + vsiga[(ijb-1)*v+iv,(ijb-1)*v+jv]  # sums whole block(vxv)
    }
  }
  return(vtot)
}

Try the dmm package in your browser

Any scripts or data that you put into this service are public.

dmm documentation built on July 26, 2023, 5:23 p.m.