profile function

Profile likelihood and support

Profile likelihood and support

Given a support function, return a profile likelihood curve

profsupp(H, i, p, relative=TRUE, ...) profile_support_single(H, i, p, evaluate=FALSE, ...)

Arguments

  • H: hyper2 object
  • i: Name of player for which profile support is to be calculated
  • p: Strength of element i
  • evaluate: Boolean, with default FALSE meaning to return the maximal support for p_i=p and TRUE meaning to return the evaluate
  • relative: Boolean; if TRUE (default), return the support relative to the maximum support attained; if false, return the support as returned by profile_support_single().
  • ...: Arguments passed to maxp()

Returns

Returns the support at a particular value of pip_i, or the evaluate conditional on pip_i.

Author(s)

Robin K. S. Hankin

See Also

loglik

Examples

## Not run: # takes too long p <- seq(from=0.5,to=0.4,len=10) u <- profsupp(icons,"NB",p) plot(p,u-max(u)) abline(h=c(0,-2)) ## End(Not run)
  • Maintainer: Robin K. S. Hankin
  • License: GPL (>= 2)
  • Last published: 2024-05-31