R/logLik.biprobit.R

Defines functions logLik.biprobit

##' @export
logLik.biprobit <- function(object,indiv=FALSE,...) {
  if (indiv) return(object$logLik)
  n <- sum(object$N[1])
  p <- length(coef(object))
  loglik <- sum(object$logLik)
  attr(loglik, "nall") <- n
  attr(loglik, "nobs") <- n
  attr(loglik, "df") <- p
  class(loglik) <- "logLik"        
  return(loglik)
}

Try the mets package in your browser

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

mets documentation built on May 29, 2024, 3:51 a.m.