But I still don’t get how build the formula in brms.
This is my date
date.csv (129.1 KB)
first I fitted a simple model like this:
family = gaussian(link=“identity”),
cores = getOption(“mc.cores”, 10),
Now, I want to break up the num to 0-20, 20-35, 35-70 using piecewise regeression with a interaction efffect (type), I tried several times, bu failed all of them.
How should I fit it?
Thank you guys!