R/loglikihg.R

Defines functions loglikihg

#' @title Log-likelihood function for an IHG model without covariates
#' @aliases loglikihg
#' @description Compute the log-likelihood function for an IHG model without covariates for
#'  the given absolute frequency distribution.
#' @usage loglikihg(m, freq, theta)
#' @param m Number of ordinal categories
#' @param freq Vector of the absolute frequency distribution
#' @param theta Preference parameter
#' @keywords internal




loglikihg <-
function(m,freq,theta){
  t(freq)%*%log(probihg(m,theta))
}

Try the CUB package in your browser

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

CUB documentation built on Feb. 9, 2018, 6:14 a.m.