The Stan Forums
Survey weighted regression
Modeling
stijn
October 1, 2017, 12:54am
9
Try
for(i in 1:N){ target += normal_lpdf(y[i] | yHat[i], sigma) * weights[i]; }
show post in topic
Related topics
Topic
Replies
Views
Activity
Weighted Beta-Binomial Bayesian model
Modeling
rstan
,
specification
8
1494
September 11, 2023
Bayesian parallels of weighted regression
Modeling
11
4361
March 5, 2021
What are the "weights" in rstanarm
rstanarm
20
2595
November 21, 2020
Sampling weights in Stan
General
3
2164
April 16, 2019
Survey weights in brms/stan - Simulation based on design effect, feedback sought!
Modeling
techniques
12
3033
September 9, 2022