I have a three way interaction in my brms fit model. I tried hypothesis function to calculate the slopes of biomass vs evenness in a given density and year. with fitted function I generated negative slopes of biomass and evenness, however, hypothesis function shows me positive slopes.
Could you tell me how can I get conditional slopes for three way interactions? two categorical and one continuous variables are present in my dataset.
I may be misunderstanding the code you have written, but if:
biomass~Density+evenness+year
is your regression equation, I don’t think you have coded in the interaction. I think you would first want to look at the basic output if you do something like:
Ah, okay! If you are able to show the regression output that could also be helpful. Given that the link is log, is it possible that you are looking at the output and it has a negative coefficient, but that you need to transform it (exponentiate, as it is on the log scale), which would make it positive?