R/rate_NPHNLL.R

Defines functions rate_NPHNLL

rate_NPHNLL <- function(gamma, beta0, beta, alpha, T0, T, X, Z, ntd, nnll, nsbtd, nsbnll, time.spline, z.spline ){
	# compute the rate of mahaboubi model
	return(exp(T0 %*% gamma) + X %*% beta0 + T %*% beta %*% t(Z %*% alpha)) 
}

Try the flexrsurv package in your browser

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

flexrsurv documentation built on June 7, 2023, 5:09 p.m.