R/coef.WCE.R

Defines functions coef.WCE

Documented in coef.WCE

coef.WCE <- function(object, ...){ # obtains coefficients from WCE object
  if  (is.null(object$covariates) == T) {
    ret <- list(covariates = NULL, WCEest = .nicer(object$est))} 
  else {
    ret <- list(WCEest = .nicer(object$est), covariates = object$beta.hat.covariates)}
  ret
}

Try the WCE package in your browser

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

WCE documentation built on May 2, 2019, 3:35 p.m.