R/irf.R

irf <-
function(ip, x, D = 1.7){
  
	    ni = nrow(ip)
	    f = sapply(1:ni, function(i) {ip[i, 3] + (1 - ip[i, 3])/(1 + exp(-D*ip[i, 1] * (x-ip[i, 2])))})
	    r = list(x = x, f = f)
	    return(r)
	    }

Try the cacIRT package in your browser

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

cacIRT documentation built on May 1, 2019, 10:18 p.m.