Computes means for various slices of a regression_spec by betas product.

avg_spacing(x, betas, alpha, jstar, trim = 0)

Arguments

x

Regression specification.

betas

Fitted quantile coefficients for specification.

alpha

Quantiles targeted.

jstar

First quantile to be estimated (usually the center one)

trim

Fraction (0 to 0.5) of observations to be trimmed from each end of a given column in the regression_spec by betas product before the mean is computed.

Value

Matrix with rows containing means for each quantile for various slices of the specification.