R/restrictY.R

Defines functions `restrictY`

`restrictY` <-
function(d,y,r,level,verbose=0) {
  if (sum(y^2, na.rm = TRUE) == 0) return(y)
  switch(level,
  "nominal"=return(nominalY(d,y,r,verbose=verbose)),
  "ordinal"=return(ordinalY(d,y,r,verbose=verbose)),
  "numerical"=return(numericalY(d,y,r,verbose=verbose)),
  "polynomial"=return(polynomialY(d,y,r,verbose=verbose)))
}

Try the homals package in your browser

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

homals documentation built on June 10, 2022, 5:09 p.m.