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]; }
1 Like
show post in topic
Related Topics
Topic
Replies
Views
Activity
Struggles with Survey weighting and Regression Modeling
General
6
506
March 24, 2020
MRP for average predictive comparisons?
rstanarm
surveys
6
698
December 15, 2020
What are the "weights" in rstanarm
rstanarm
20
1828
November 21, 2020
Why shouldn't I use weights?
General
6
521
January 24, 2020
Improving precision when post-stratifying with MRP
Modeling
techniques
,
specification
,
brms
1
289
July 31, 2023