-
Notifications
You must be signed in to change notification settings - Fork 11
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
using btm function with eps = 0 returns error #2
Comments
I decided to replace the line for calculating initial values by |
That is indeed a more elegant solution.
|
Yes, I agree. This was an incorrect version. I just updated a new version in which the problem should have been solved. |
The change works fine! Thanks! |
Executing the following line of code (with data from data.txt with specs: sep = ";", dec = "." )
Ability_sirt <- btm( data = Data, fix.eta = 0, fix.delta = 0, eps = 0 )
returns the error and warning
The problem is located in the file btm.r on line 62. Calculating the mean of a vector containing INF values results in an INF value. If there is no epsilon correction (i.e.
eps = 0
) line 60 produces an -INF value (in the example data) because there is a 0 score.A possible solution, in my opinion, is to insert the block from line 65 to line 76 between line 60 and 61 and add the line of code
theta[elim_persons_index] <- NA
after the linetheta_elim <- theta[ elim_persons_index ]
in the moved block.That part of code should look as follows
data.txt
The text was updated successfully, but these errors were encountered: