R/coef.segmented.r

Defines functions coef.segmented

Documented in coef.segmented

coef.segmented<-function(object, include.psi=FALSE, ...){
  b<- object$coefficients
  if(include.psi){
    psi<- object$psi[,"Est."]
    b[rownames(object$psi)]<-psi
  }
  b
}

Try the segmented package in your browser

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

segmented documentation built on Nov. 28, 2023, 1:07 a.m.