Skip to content

Allow specification of inverse mass matrix (Feature Request) #433

Description

@aaronjg

Summary:

@mitzimorris recently added the specification of the initial inverse matrix (stan-dev/stan#2260). It would be nice to have this feature in rstan.

Description:

It could be added by adding an additional argument (init_inv_metric) to the sampling command. When metric is "diag_e" then init_inv_metric is a vector, or list of vectors, one for each chain, with length equal to the number of unconstrained params. When metric is "dense_e" then init_inv_metric is a semi-positive definite matrix of the appropriate size. When metric is "unit_e" and init_inv_metric is specified, then an error is thrown.

Alternatively, for "diag_e" the inverse metric could be specified on a per parameter basis, similar to how "inits" is used to set initial values.

I could take a stab at implementing this if the proposal seems reasonable, and no one else is already working on it.

Current Version:

v2.16.2

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