-
Notifications
You must be signed in to change notification settings - Fork 176
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
[BUG]: Error in density.default(BetaIV.in, weights = weights, bw = h) : non-finite 'bw' #570
Comments
@explodecomputer Could you please take a look? Thanks! |
@mathspete Could you please take a look? Thanks! |
You have not provided a reproducible example. Please provide a full code example including the data which recreates the error otherwise it's very time consuming for us just to recreate your error. (We ask for a reproducible example in the issue template - but you've deleted that.) And please don't @ mention people without good reason. |
I am really sorry. Here are the codes: datm_male<- harmonise_data(exposure_dat, outcome_datm_male) it works fine after harmonization, but mr(datm_male) gave the bug, is it because several of the beta.exposure is 0 in my data? |
I am really sorry. I have provided the codes above. |
Additionally, when I use "MendelianRandomization" package, it works fine. So it's not because the number of SNPs is too small. |
The example is not reproducible because we don't have your dataset smaller_p_physical.csv. |
small_p_physical.csv |
When I run the mr(datm), it gave me this error.
Error in density.default(BetaIV.in, weights = weights, bw = h) : non-finite 'bw'
The text was updated successfully, but these errors were encountered: