You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When draw_ids are specified to get a subset of the draws, [add_]epred_draws still returns 1, 2, ..., row number in .draw. It would be useful to have draw_ids in .draw. Because we may want to split the draws and later combine them.
A minimal reproducible example
set.seed(1234)
# need a minimal modelm<- brm(
x~1,
data= tibble(x= rnorm(100, 0, 1)), # generate some databackend='cmdstanr',
refresh=2000, # don't want lots of messagesfamily= gaussian()
)
add_epred_draws(
m,
newdata= tibble(x=0),
draw_ids=100:102# a subset of draws
)
The output is
x
.row
.chain
.iteration
.draw
.epred
0
1
NA
NA
1
0.1354060
0
1
NA
NA
2
0.0083186
0
1
NA
NA
3
-0.0979545
Notice that .draw is still 1,2,3 while we specified 100:102.
The text was updated successfully, but these errors were encountered:
When
draw_ids
are specified to get a subset of the draws,[add_]epred_draws
still returns1, 2, ..., row number
in.draw
. It would be useful to havedraw_ids
in.draw
. Because we may want to split the draws and later combine them.A minimal reproducible example
The output is
Notice that
.draw
is still1,2,3
while we specified 100:102.The text was updated successfully, but these errors were encountered: