R/00.iso.R

Defines functions iso

Documented in iso

iso=function(z,shape){
  shape=tolower(shape)
  if(shape=="inc") shape="increasing"
  if(shape=="dec") shape="decreasing"
  zname=deparse(substitute(z))
  K=stats::median(z)

  attributes(z) = c(list(name=zname,shape=shape,K=K))
  class(z)="iso covariate"
  return(z=z)
}

Try the isoSurv package in your browser

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

isoSurv documentation built on Sept. 2, 2023, 9:08 a.m.