Skip to content

--info include information parameter transforms #1461

@andrewfowlie

Description

@andrewfowlie

Could the stanc --info command include information about constraints? At the moment, e.g.,

parameters {
  real<lower=0, upper=1> theta;
}

and

parameters {
  real theta;
}

both result in identical output,

{
  "inputs": {},
  "parameters": { "theta": { "type": "real", "dimensions": 0 } },
  "transformed parameters": {},
  "generated quantities": {},
  "functions": [],
  "distributions": [],
  "included_files": []
}

that doesn't mention the constraints. It would be great if the one with constraints gave something like,

{
  "inputs": {},
  "parameters": { "theta": { "type": "real", "dimensions": 0, "lower": 0, "upper": 1 } },
  "transformed parameters": {},
  "generated quantities": {},
  "functions": [],
  "distributions": [],
  "included_files": []
}

Ideally, this would work everywhere (i.e., in all the blocks), and cover the shift and scale modifiers as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions