R/iccs.R

Defines functions Pij.cloglog Pij.logistic

Pij.logistic <- function(parm, theta,D){
		aj = parm[1]; bj = parm[2]; cj = parm[3]
		pij = cj + (1-cj)*exp(D*aj*(theta - bj))/ (1 + exp(D*aj*(theta - bj)) )
		return(pij)
}

Pij.cloglog <- function(parm, theta,D){
	bj = parm[2]
	pij = 1 - exp(-exp(theta - bj))
	return(pij)
}

Try the SNSequate package in your browser

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

SNSequate documentation built on Dec. 28, 2022, 1:35 a.m.