R/SS.r

Defines functions SS

Documented in SS

SS <- function(offtemp, Sx){

          totnM <- length(unique(offtemp))
          off2 <- as.data.frame(cbind(1:length(offtemp),offtemp))
          off2 <- split(off2, off2$offtemp)
          St <- list()
          for(i in 1:totnM) St[[i]] <- Reduce("+", Sx[ off2[[i]][,-2] ])
          St
          
}

Try the SemiParBIVProbit package in your browser

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

SemiParBIVProbit documentation built on June 20, 2017, 9:03 a.m.