-
Notifications
You must be signed in to change notification settings - Fork 5
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
irt_gen function #40
Comments
Hi @Sinan-Yavuz, thank you for your contribution! We're gonna take a look at the issue and implement the necessary changes ASAP. |
In the meantime, it'd be great if you could provide us with some examples why the current implementation of the function doesn't work, so we can add them to our unit test battery. |
Hi @wleoncio, thank you very much for your quick reply. Here is the example;
|
Hi, I worked to identify this bug with @Sinan-Yavuz and the way you can tell this is a bug is that the intercept of the lm should move up as the guessing parameter increases. Your formula works so long as the c parameter is 0. When it is not zero you make the wrong probability of a zero The problem is that the binary is being treated like the polytomous case. In the binary case there is a guessing parameter and you do not want to divide by the denominator, the second element of the numerator is already the probability of a 1. c_par decreases, not increases the probability of a zero, but your formula increases it. |
Thanks, Paul and Sinan - that's super helpful. We'll sort this out. Glad you are using lsasim! |
Checking the MREOK, so I've created a markdown document based on the code above. Please check it here and let me know if the output conforms to your expectations. Fixing the bugAs for implementing the changes, I am not sure how to proceed. The |
I think you may want to break up dichotomous from polytomous cases. I've never seen a polytomous case with a c parameter. I think you could add this line right before you sample
so irt_get would be:
but I haven't tested this and I'm still not entirely sure what is vectorized here. Another workaround would be to use Sinan's code when c_par > 0 and your existing code otherwise. |
Good ideas, @pdbailey0, we'll work on that ASAP. 👍🏽 |
Changes implemented and will be included on the next CRAN release of the package. @Sinan-Yavuz and @pdbailey0, thank you once again for your contribution; we have added you as package contributors, please let us know if the information below needs any modification (e.g. typo or addition of a field such as e-mail): Lines 17 to 18 in 97934b4
|
@wleoncio, I am honored to be mentioned as a contributor though it is not necessary. I will make a modification to my name and email. At some point, if you change your mind and think my contribution is no longer valid or important, feel free to remove me. |
Looking forward to the Pull Request containing the modifications, @Sinan-Yavuz! Your and Paul's mentions were based on the documentation for the
By "package citation", they mean the contents of |
Hello,
Thank you very much for creating "lsasim".
I have found a bug and want to share it with you.
irt_gen function doesn't produce a 0-1 matrix based on the parameters. I have changed the following to produce a proper dataset.
Let me know if you need me to provide you some examples, why irt_gen doesn't work.
The text was updated successfully, but these errors were encountered: