【发布时间】:2018-05-07 22:13:10
【问题描述】:
如果我观察到的数据集具有权重(例如跟踪多重性),是否可以将其提供给 pystan 或 pymc3,类似于 rstanarm 包中的函数签名 (http://mc-stan.org/rstanarm/reference/stan_glm.html):
stan_glm(formula, family = gaussian(), data, weights, subset,
na.action = NULL, offset = NULL, model = TRUE, x = FALSE, y = TRUE,
contrasts = NULL, ..., prior = normal(), prior_intercept = normal(),
prior_aux = exponential(), prior_PD = FALSE, algorithm = c("sampling",
"optimizing", "meanfield", "fullrank"), adapt_delta = NULL, QR = FALSE,
sparse = FALSE)
【问题讨论】:
标签: python pymc3 stan rstan pystan