Skip to content

Is Stan's affine transform type <offset, multiplier> restricted to scalars? #870

Open
@mitzimorris

Description

@mitzimorris

The Stan Reference Manual has sections: "Affinely Transformed Scalar" - https://mc-stan.org/docs/reference-manual/transforms.html#affinely-transformed-scalar and https://mc-stan.org/docs/reference-manual/types.html#affine-transform.section

The following program compiles:

parameters {
  real<multiplier=3> y;
  vector<multiplier=exp(y/2)>[9] x;
}
model {
  y ~ std_normal();
  x ~ std_normal();
}

here x is a vector, not a scalar. scatter plots of x[1] vs x[2] etc look pretty normal...

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions