Learn R Programming

cdfquantreg (version 1.3.1-2)

qrLogLik: Log Likelihood for Fitting Cdfquantile Distributions

Description

Function to give the (negative) log likelihood for fitting cdfquantile distributions.

Usage

qrLogLik(y, mu, sigma, fd, sd, total = TRUE)

Value

The negative log likelihood for fitting the data with a cdfquantile distribution.

Arguments

y

the vector to be evaluated.

mu

mean of the distribution.

sigma

sigma of the distribution.

fd

A string that specifies the parent distribution.

sd

A string that specifies the sub-family distribution.

total

whether the sum of logliklihood is calculated

Examples

Run this code
y <- rbeta(20, 0.5, 0.5)
qrLogLik(y, mu = 0.5, sigma = 1, 't2','t2')

Run the code above in your browser using DataLab