R/stilsqFn.R

Defines functions stilsqFn

Documented in stilsqFn

stilsqFn <- function(s2j,wtm) {
# wtm is an a x b matrix of weights
m <- do.call(cbind,s2j) # m is (rsteps+1) x b.
x <- apply(wtm,2,sum)
wtm <- t(wtm)/apply(wtm,2,sum)
m%*%wtm
}

Try the kanova package in your browser

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

kanova documentation built on Aug. 8, 2025, 7:50 p.m.