You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently studying Biostatistics and while working on a consulting project I stumbled upon your online book "Flexible Imputation of Missing Data". First of all, thanks for making this publicly available and putting in all the effort. It really helped me a lot. However, when running your simulation example in chapter 2.5, I noticed that R spits out only NaN as estimates and for the confidence interval. When looking for the reason I found that there is an error in the code in the test.impute function. The row names of "tab" are not set so per default they are just "1" and "2". Therefore accessing the second row of "tab" with tab["x", … ] does not work (at least on R version 4.0). It would probably be best to replace "x" with 2. The issue is in the fimd.R file on line 390.
Best regards,
Felix
The text was updated successfully, but these errors were encountered:
vkhodygo
added a commit
to vkhodygo/fimdbook
that referenced
this issue
Nov 3, 2023
Hi @stefvanbuuren
I am currently studying Biostatistics and while working on a consulting project I stumbled upon your online book "Flexible Imputation of Missing Data". First of all, thanks for making this publicly available and putting in all the effort. It really helped me a lot. However, when running your simulation example in chapter 2.5, I noticed that R spits out only NaN as estimates and for the confidence interval. When looking for the reason I found that there is an error in the code in the test.impute function. The row names of "tab" are not set so per default they are just "1" and "2". Therefore accessing the second row of "tab" with tab["x", … ] does not work (at least on R version 4.0). It would probably be best to replace "x" with 2. The issue is in the fimd.R file on line 390.
Best regards,
Felix
The text was updated successfully, but these errors were encountered: