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

Added domain validation to rtrunc() #39

Conversation

wleoncio
Copy link
Member

@wleoncio wleoncio commented Apr 13, 2021

Hi René,

I've written an internal generic function that handles parameter domain validation checks for each distribution handled by the package. It gets called whenever the user calls rtrunc().

I would like your help checking the validating conditions, especially the limit cases (e.g., whether or not to include 0s and 1s). I've used the limits from Wikipedia. I am also not sure whether the lambda in the Poisson must be an integer: I understand the function is supported only for a natural number of observations (X), but the mean/variance (lambda) can be any real number larger than zero.

Best,
Waldir

P.S.: This fixes issue #7

@wleoncio wleoncio requested a review from rho62 April 13, 2021 13:47
@wleoncio wleoncio added enhancement New feature or request help wanted Extra attention is needed labels Apr 13, 2021
@wleoncio
Copy link
Member Author

By the way, a convenient way to review the code is by following the numbers on this image (6 is optional, if you want to comment on a particular line).

image

@wleoncio wleoncio linked an issue Apr 13, 2021 that may be closed by this pull request
…ameter-domains' of github.com:ocbe-uio/TruncExpFam into issue-7-Create-validation-function-for-distribution-parameter-domains
@wleoncio
Copy link
Member Author

P.S.: not all functions are there, specifically those that need integration (see issue #30). These will be added later.

…ameter-domains' of github.com:ocbe-uio/TruncExpFam into issue-7-Create-validation-function-for-distribution-parameter-domains
Updating the issue-7 branch with all the new stuff on develop. This should really be merged soon (depending on PR #39).
@wleoncio wleoncio merged commit 551991e into develop Nov 4, 2021
@wleoncio wleoncio deleted the issue-7-Create-validation-function-for-distribution-parameter-domains branch November 4, 2021 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create validation function for distribution parameter domains
1 participant