Learn R Programming

FARS (version 0.8.0)

logLik.fars: Log-Likelihoods for fars Object

Description

Returns the log-likelihood for a single quantile regression stored in a fars object (selected via tau).

Usage

# S3 method for fars
logLik(object, tau, ...)

Value

An object of class "logLik", as returned by the underlying quantile regression model.

Arguments

object

An object of class fars.

tau

Numeric. Quantile level to select (e.g. 0.50).

...

Additional arguments (ignored).

Examples

Run this code
fars_result <- compute_fars(dep_variable = rnorm(100),
                            factors = matrix(rnorm(100 * 3), ncol = 3))
logLik(fars_result, tau = 0.50)

Run the code above in your browser using DataLab