Skip to content

Feature Request: public subset() method for psis objects #343

@utkarshpawade

Description

@utkarshpawade

There is currently no public API in the loo package to subset a psis object by observation index. Downstream packages that need this functionality are forced to manually manipulate the internal structure of psis objects.

For example, bayesplot has had this workaround sitting with a FIXME comment : https://github.com/stan-dev/bayesplot/blob/master/R/ppc-loo.R#L722-L738

Would it be possible to export a subset.psis() S3 method or a subset_psis() helper? That way downstream code can drop the fragile workaround and rely on a stable API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions