linearmodels.iv.covariance.kernel_weight_bartlett

linearmodels.iv.covariance.kernel_weight_bartlett(bw: float, *args: int) → ndarray[tuple[int, ...], dtype[float64]][source]

Kernel weights from a Bartlett kernel.

Parameters:
bw: float

Maximum lag to use in the kernel.

*args: int

Ignored. Accepted so that every kernel weight function can be called with the same arguments.

Returns:

Weight array ordered by lag position (maxlag + 1).

Return type:

numpy.ndarray

Notes

\[w_i = 1 - i / (m + 1), \, i < m\]