R/pmeskeleton.R

Defines functions pmeskeleton

Documented in pmeskeleton

pmeskeleton <- function(tmat){
  pme <- vector("list", nrow(tmat))
  names(pme) <- paste("from", 1:nrow(tmat), sep = ".")
  for(k in 1:nrow(tmat)){
    pme[[k]] <- vector("list", nrow(tmat))
    names(pme[[k]]) <- paste("eta.", k, 1:nrow(tmat), sep = "")
    for(l in 1:ncol(tmat)){
      if(!tmat[k, l]){
        pme[[k]][[l]] <- function(x){return(0)}
      }
    }
  }
  return(pme)
}

Try the simMSM package in your browser

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

simMSM documentation built on May 6, 2022, 9:05 a.m.