R/fitWeights.R

Defines functions fitWeights

Documented in fitWeights

fitWeights <- function(cell, thresh){
  n.body = length(which(cell$Loss <= thresh))
  n.total = length(cell$Loss)
  return(n.body/n.total)
}

Try the OpVaR package in your browser

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

OpVaR documentation built on Sept. 8, 2021, 5:07 p.m.