getMarginalEffects.Rd
Calculates the marginal effects of an N x p matrix (wide-format) of qreg coefficients
getMarginalEffects( qreg_coeffs, avg_spacings, j_star, calcSE = TRUE, qreg_vcv_vec = NULL )
qreg_coeffs | wide-format of calculated spacings point estimates |
---|---|
avg_spacings | average spacings matrix, which can be calculated from setting calculateAvgME = TRUE or using the calcAvgSpacing function directly |
j_star | the first quantile the user wishes to predict (usually the middle one) |
calcSE | boolean value, indicating whether the user wishes to calculate the marginal effect standard errors |
qreg_vcv_vec | variance-covariance matrix from point estimates, only necessary if calculating standard errors |
list of values: avgME: calculated average marginal effects avgME_se (user-specified): standard errors on the calculated marginal effects