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

need for logLik for family=Poisson #70

Open
arives opened this issue Jan 29, 2022 · 3 comments
Open

need for logLik for family=Poisson #70

arives opened this issue Jan 29, 2022 · 3 comments

Comments

@arives
Copy link
Collaborator

arives commented Jan 29, 2022

For bayes = F, family=Poisson doesn't produce logLik, although family=binomial does. I thought the code was there for the logLik, but I might need to write it.

@daijiang
Copy link
Owner

Tony, I think family=Poisson already has logLik in the output.
Get it with model$logLik

@arives
Copy link
Collaborator Author

arives commented Jan 30, 2022 via email

@daijiang
Copy link
Owner

daijiang commented Feb 3, 2022

Tony,
Here are the lines of code for that: https://github.com/daijiang/phyr/blob/master/R/pglmm.R#L936-L954
I think it is included there? No idea why you did not have that.
If you can send me an example, I may be able to look at it.

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