calcAvgSpacing.Rd
Computes means for various slices of a regression_spec by betas product.
calcAvgSpacing(x, betas, alpha, jstar, trim = 0.01)
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. |
Matrix with rows containing means for each quantile for various slices of the specification.