Return coefficient values in DGP library functions in addition to support indices
tiffanymtang opened this issue · 2 comments
tiffanymtang commented
Return coefficient values in DGP library functions in addition to support indices
jpdunc23 commented
Copied from a comment on closed PR #107 for reference here: We could replace "support" with "beta_nonzero" in return values, which would be some sort of data structure holding the coefficients and their indices at the same time. The package Matrix has sparse vectors and may be worth adding if we have other uses for it (e.g. using sparse matrices). Otherwise, maybe we just create a simple S3 class that replicates sparseVector
.
jpdunc23 commented
Moved to dgpoix
: Yu-Group/dgpoix#2