loglike: loglike

Description Usage Arguments Value Examples

View source: R/loglike.R

Description

Loglikelihood for the Beta, Kumaraswamy, Unit Gamma, Simplex, Retangular Beta or LSL distributions.

Usage

1
loglike(par, model, x, sum = "yes")

Arguments

par

numeric. Parameters for the distribution.

model

character. The chosen model.

x

numeric. The variable values.

sum

logic. Should we return the sum of the loglikelihood?

Value

loglikelihood values

Examples

1
2
3
4
5
6
{

  x <- seq(0.00001, 0.9999, l = 50)
  loglike(par = c(0.5, 0.5), model = "beta", x = x, sum = "yes")

}

brunaw/unitTools documentation built on May 5, 2019, 12:29 a.m.