R/n.knots.R

n.knots=function(n, cutoff=35, rate=0.2){
    as.integer(trunc(pmin(n,cutoff+pmax(0,n-cutoff)^rate)))
}

Try the hisemi package in your browser

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

hisemi documentation built on May 2, 2019, 5:23 p.m.