Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 stan 中使用向量的分位数,但函数 quantile 似乎不起作用。请参阅以下示例中的 ** **。
data{ vector[10] y; vector[10] x; } parameters{ real a; real b; } model{ vector[10] mu; real Q; mu = a*x+b; **Q = quantile(y-mu, 0.66);** }
该quantile函数在 Stan 语言中不存在。
quantile
Stan 的语言侧重于表达可微分统计模型。分位数函数不可微分。