ryantibs / quantgen

Tools for generalized quantile modeling
https://ryantibs.github.io/quantgen
14 stars 9 forks source link

Fix array indexing issues #15

Closed sbfnk closed 2 years ago

sbfnk commented 2 years ago

The current implementation breaks if only one model is passed as , e.g., qarr[, , k] might return a vector which yields an error when passed to cbind. The proposed changes ensure this is always an array.

In addition, it avoids adding columns twice when intercept is passed.

sbfnk commented 2 years ago

I don't seem to be able to re-create the original issue with cbind. I'll make a separate PR for the remaining problem.