-
Notifications
You must be signed in to change notification settings - Fork 129
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
Small changes to allow IC to use MixedChiSquare; also a quick hack to… #15
base: master
Are you sure you want to change the base?
Conversation
… ChiSquared test to allow zero contingency entry, so that it can be used for testing.
@@ -81,6 +81,7 @@ def __init__(self, y, x, z, X, alpha, variable_types={}, burn=1000, thin=10, bin | |||
self.x = x | |||
self.y = y | |||
self.z = z | |||
print '\nCreating indep test for x, y, z = ',x,y,z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @stewartsiu ! We shouldn't have print statements outside of exceptions!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, line 32 needs a variable_types={}
kwarg!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akelleh, Why line 32 (it is a class definition)? If you meant line 33, then wouldn't additional code be needed to handle variable_types
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right! line 33. No additional code needs to be added to handle it. It's required since the ICs.search() method passes the CIT a variable_types
arg by default now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stewartsiu (so the modification on line 33 should be all we need!)
Hi @akelleh!
|
Hey @stewartsiu (2) That's cool. It'll work as a CIT on discrete data, so we need to make sure it's still compatible with ICs, so we need to make sure it accepts the args that ICs passes to it. Let me know if you have any questions! |
… ChiSquared test to allow zero contingency entry, so that it can be used for testing.