sorry this is a very basic question, but I’m also not very familiar with R, so getting a bit stuck with how to extract my posterior summary values of the format oner per person.
if my model is of the form:
fit <- brm(formula= ForageChoice ~ 1+Offer+Cost + (1+Offer+Cost|ID))
How do I get the posterior summary ordered in e.g. a data frame where each row is an ID and the columns are Intercept, Offer, Cost?
For comparison, I have also made a stan model, where e.g.
offer_subj ~ normal(offer_group, offer_sd)
and then I have gotten the outputs that I want using