View source: R/marginal_effects.R
avg_spacing | R Documentation |
Computes means for various slices of a regression_spec by betas product.
avg_spacing(x, betas, alpha, jstar, trim = 0)
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.