R/selpscale.R

Defines functions selpscale

Documented in selpscale

# Power Scaling
selpscale = function(fitvals, ns, selk, ...){
  n = length(fitvals)
  if(missing(ns)) ns=n
  if(missing(selk)) selk=1.005
  fstar = fitvals^selk
  p = fstar/sum(fstar)
  matpool = sample(1:n, size=ns, prob=p, replace=TRUE)
  return(matpool)
}

Try the adana package in your browser

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

adana documentation built on March 18, 2022, 6:03 p.m.