Learn R Programming

ssmrob (version 1.0)

MmatrM: M Matrix

Description

M matrix of a linear regression M-estimator of Mallows type.

Usage

MmatrM(x, y, beta, sigma, t.c = 1.345, weights = 1)

Arguments

x

matrix of explanatory variables

y

vector of dependent variables

beta

vector of parameters

sigma

robust scale estimate

t.c

tuning constant c for Huber's psi-function

weights

vector of robustness weights controlling for the leverage effects

Value

M matrix for the sandwich formula.

Details

Computes the M matrix of the M-estimator of Mallows type. In current implementation only the Huber score function is available.