R/fdbkFunc.R

Defines functions `fdbkFunc`

`fdbkFunc` <-
function(y) {
	if(is.list(y) != TRUE) {
		stop("Error: ", paste(sQuote("y"), sep = ""), " should be a list.")
	}
	u <- y
	P <- nrow(y[[1]])
	T <- ncol(y[[1]])
	for(i in 1:length(y)) {
		u[[i]] <- cbind(rep(0, P), u[[i]][,-T])
	}
	return(u)
}
andreamrau/ebdbNet documentation built on Sept. 5, 2023, 4:57 a.m.