yoshidk6 / rstanemax

Simple Emax model fit with Stan
https://yoshidk6.github.io/rstanemax/
GNU General Public License v3.0
5 stars 1 forks source link

Can rstanemax estimate the proptional residual error? #44

Closed Kokomole closed 1 year ago

Kokomole commented 1 year ago

Dear author,

Thank you for developing this great package, which is very convenient to build the Emax model. However, it seems only the addtive residual error can be estimated by the function stan_emax? I'm wondering whether the following proptional residual error can be estimated:

$$y = (e0 + \frac{e{max}\times x}{ec_{50}+x})\times (1+\varepsilon) $$

where $$\varepsilon \sim N(0, \sigma^2)$$

Many thanks to your help.

Best regards, Min

yoshidk6 commented 1 year ago

Thanks for using the package! Unfortunately rstanemax doesn't have a functionality to use proportional error model. I would suggest the followings as potential alternatives - each with own drawbacks but hopefully good enough approximation for most cases.

Kokomole commented 1 year ago

Thank you author. Your answer is of great help to me and it have solved my problem.