I was trying to build a hierarchical model without explicitly specifying the groups in data. For this i want to use hyperpriors, but i couldn't figured out how to do this in the brms package.
P.S. i'm new to hierarchical modelling, so maybe i'm just missing some point.
--
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+unsubscribe@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/cf24ef0c-3618-40a4-b198-e6052a0ec7b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
########## Model definition ####################################################
nlform <- bf(GOL ~ 1 - exp(-(k1+k2*V2+k3*V3+k4*V4)*(V5^n)*
exp(-(E1+E2*V2+E3*V3+E4*V4)*
(800-V1)/(800*V1)) /((CF^V7)*V6)^(a)) +
(5.938068 + 2.066451*V9 + 0.258684*v10*V9 -0.226948*V9*v11 -
0.347305*(V9^2))/100,k1+k2+k3+k4+n+E1+E2+E3+E4+CF+a ~ 1,nl = TRUE)
######### Priors ####################################
nlprior <- c(prior(normal(0,1),nlpar = "k1"),
prior(normal(0,1),nlpar = "k2"),
prior(normal(0,1),nlpar = "k3"),
prior(normal(0,1),nlpar = "k4"),
prior(normal(0,1),nlpar = "n"),
prior(normal(0,1000),nlpar = "E1"),
prior(normal(0,1000),nlpar = "E2"),
prior(normal(0,1000),nlpar = "E3"),
prior(normal(0,1000),nlpar = "E4"),
prior(normal(5,10),nlpar = "CF"),
prior(normal(0,1),nlpar = "a"))
######### Fitting #####################################
fit1 <- brm(formula = nlform, data = Dados , family = gaussian(),
prior = nlprior,iter = 5000,cores = 3,chains = 3, control = list(adapt_delta=0.98,max_treedepth = 15))
Digite o código aqui...prior(normal(0,10),nlpar = "muCF"),
prior(normal(0,10),nlpar = "sigmaCF"),
prior(normal(muCF,sigmaCF),nlpar = "muCF"),
Em sábado, 4 de novembro de 2017 16:48:56 UTC-2, Paul Buerkner escreveu:
You need to explain your model in some more detail. Otherwise it is hard to help you.
2017-11-04 19:30 GMT+01:00 Helton Maciel <helton....@gmail.com>:
I was trying to build a hierarchical model without explicitly specifying the groups in data. For this i want to use hyperpriors, but i couldn't figured out how to do this in the brms package.
P.S. i'm new to hierarchical modelling, so maybe i'm just missing some point.
--
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/cf24ef0c-3618-40a4-b198-e6052a0ec7b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@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/78744f7f-5f2e-4e46-80ed-377f14d3f69a%40googlegroups.com.
I'm modelling the kinetic behaviour of thermal craking reactions of petroleum residues in order to predict product yields for industrial plants.
Humm... thanks. At least i can use brms to make a stan code for me and edit later. Congrats on the package by the way.
I'm modelling the kinetic behaviour of thermal craking reactions of petroleum residues in order to predict product yields for industrial plants.
--
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+unsubscribe@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/08ede1bc-b65a-4aac-ac78-31ad401f1215%40googlegroups.com.