Learn R Programming

diagL1 (version 1.0.0)

likelihoodCD: Calculate Conditional Likelihood Displacement

Description

Calculate Conditional Likelihood Displacement

Usage

likelihoodCD(model)

Value

Likelihood Displacement

A vector with Likelihood Displacement for each observation.

.

Arguments

model

Object returned from regL1 representing the fit of the L1 model.

References

Elian, S. N., André, C. D. S. and Narula, S. C. (2000). Influence Measure for the L1 regression. Communications in Statistics - Theory and Methods, 29(4), 837-849. tools:::Rd_expr_doi("10.1080/03610920008832518").

Examples

Run this code
set.seed(123)
x = matrix(rnorm(100), ncol = 2)
y = x[, 1] + x[, 2] + rlaplace(50, 0, 5)

# Fits a linear regression L1 model
mod1 = regL1(y ~ x)
likelihoodCD(mod1)

Run the code above in your browser using DataLab