R/findFC.R

Defines functions findFC

Documented in findFC

findFC <- function(model,lambdaNum,lambdaDenom,logbase=NULL){
  if(is.null(logbase)){
	num <- lambdaNum %*% coef(model)
  	denom <- lambdaDenom %*% coef(model)
  	FC <- num/denom
  }
  else {	
	lambdaDiff <- lambdaNum-lambdaDenom	

	if(logbase=="exp"){
		FC <- exp(lambdaDiff %*% coef(model))
	}
	else FC <- logbase^(lambdaDiff %*% coef(model))
  }

  return(FC)
}

Try the factDesign package in your browser

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

factDesign documentation built on Nov. 8, 2020, 8:32 p.m.