Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can rstanemax estimate the proptional residual error? #44

Closed
Kokomole opened this issue Jan 13, 2023 · 2 comments
Closed

Can rstanemax estimate the proptional residual error? #44

Kokomole opened this issue Jan 13, 2023 · 2 comments

Comments

@Kokomole
Copy link

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 = (e_0 + \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
Copy link
Owner

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.

  • Perform Emax model on log-transformed data
  • Use brms (ref), specify observed value as weight in bf()/brmsformula() function (ref)

@Kokomole
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants