R/n.knots.R

Defines functions n.knots

Documented in n.knots

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 July 9, 2017, 9:02 a.m.