Pure-numeric and Stan-free, so it can be unit tested directly.
Arguments
- X
Fixed-effect design matrix (N x K).
- resid
Residuals
y - muat the posterior median fit.- tau
Quantile level.
- Sigma_post
Retained for backward compatibility; ignored. (Earlier versions used a
Sigma_post-based fallback for a singular bread, which was dimensionally incorrect; the bread is now stabilised directly.)- groups
Optional integer cluster index (length N) for a cluster-robust meat.
NULLuses the independence meat.- bandwidth
Optional Powell bandwidth; default uses Hall-Sheather.