Dear all,
I am trying to predict the sales of different SKU by using a log-log model.
However, I should also capture the heterogeneity among the different brands (I would like to have a different price elasticity coefficient for each
different brand). When I run the model without random effect term it takes less
than 10 minutes. After including the random effect term it takes more than 8-9
hours to finish. The problem is that I have to include more (random effect)
terms so I cannot imagine how worse it will be. Am I doing something wrong?
Here is the formula I used:
brm(formula
= log(npack) ~ (log1p(sales_price_pack)|brand) + log1p(wd) +
log1p(wd_disp),cores=parallel::detectCores() , chains = 2, warmup = 500,
data = temp)
Should I try to define a more restrictive prior for the price since we know
that the coefficient has to be negative?
--
You received this message because you are subscribed to the Google Groups "brms-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brms-users+...@googlegroups.com.
To post to this group, send email to brms-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brms-users/5ee9a9f9-76e4-4237-814a-732bec4e9812%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.