R/coef.coxphw.r

Defines functions coef.coxphw

Documented in coef.coxphw

coef.coxphw <- function(object, ...)
{
  #if (object$template=="PH")  { coef <- coef(object) } else
  if (object$template=="PH")  { coef <- object$coefficients } else
  if (object$template!="PH") { 
    coef <-as.vector(t(object$coefficients))
    names(coef) <- names(object$coefficients)
  }   
  
  return(coef)
}

Try the coxphw package in your browser

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

coxphw documentation built on July 8, 2020, 6:52 p.m.