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

Bug fix for CalcPolyAResiduals #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danielduyvo
Copy link

For some features, DirichletMultinomial cannot fit a model and returns NULL. CalcPolyAResiduals avoids adding those features to the ec and var dataframe., but it assumes that the first feature is fit. If the first feature is not fit, ec and var are not properly initialized and cbind on R/fit.R:119 will throw an error.
Pull request initializes the dataframes with a dummy column with the appropriate number of rows, which is dropped after the construction of the full dataframe.

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

Successfully merging this pull request may close these issues.

None yet

1 participant