R/rel.phi.R

Defines functions rel.phi

Documented in rel.phi

rel.phi <- function(x,R,method="A"){
  metodi <- c("A","B")
  method <- pmatch(method, metodi)
  if (is.na(method))
    stop("not valid method")
  if (method==1){
    x1 <- x/4
    x1
  }
  else{
    x1 <- x/4+(3*R*((x-R))/(16*(1-R)))
    x1
  }
}

Try the Biodem package in your browser

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

Biodem documentation built on Jan. 5, 2021, 5:08 p.m.