R/Kenv.R

Defines functions Kenv

Documented in Kenv

Kenv <-
function(shi,  lambdaC, lambdaD, posC, typeC=1, posD, typeD=1, 
		r=NULL,L=NULL, T=NULL,typeEst)
{
	posDs<-posD+shi
	posDs[posDs>T]<-posDs[posDs>T]-T
	posDs<-sort(posDs)
	lambdaDs<-rbind(matrix(lambdaD[(T-shi+1):T,], nrow=shi),matrix(lambdaD[1:(T-shi),], nrow=(T-shi)))
	Kaux<-NHKaux(lambdaC=lambdaC, lambdaD=lambdaDs,T=T, posC=posC,
		typeC=typeC, posD=posDs, typeD=typeD, r=r, typeEst=typeEst)
	return(Kaux)
}

Try the IndTestPP package in your browser

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

IndTestPP documentation built on Aug. 29, 2020, 1:06 a.m.