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

code and Supplementary information are incoherence #115

Open
usst-hzf opened this issue Sep 6, 2023 · 4 comments
Open

code and Supplementary information are incoherence #115

usst-hzf opened this issue Sep 6, 2023 · 4 comments

Comments

@usst-hzf
Copy link

usst-hzf commented Sep 6, 2023

RCPP:EXPORT iterate_deconv function in program code. When updating mu, Yrows.each_col()%=w(index_1k) , shouldn't it be multiply by w? How come it becomes a remainder, it should be Yrows.each_col()*=w(index_1k)

@edward130603
Copy link
Owner

In c , % is the element-wise matrix multiplication operator, while * is for regular matrix multiplication.

@usst-hzf
Copy link
Author

usst-hzf commented Sep 7, 2023

OK,Thanks. I have one more question.

In Updata z and w,Parameters of the gamma distribution: w_beta is 2/(Y.row-mu_i_long) * lambda * (Y.row-mu_i_long).t() 4) in code. But w_beta is (Y.row-mu_i_long).t() * lambda * (Y.row-mu_i_long) 4)/2 in supplementary infomation.

@edward130603
Copy link
Owner

There are 2 parameterizations of the gamma distribution: https://en.wikipedia.org/wiki/Gamma_distribution

In Bayesian statistics, we typically use $\alpha$ and $\beta$, but the R function we used had the other parameterization, where $\theta = 1/\beta$.

@usst-hzf
Copy link
Author

usst-hzf commented Sep 8, 2023

Thanks!

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