kosukeimai / CBPS

R package: CBPS
27 stars 10 forks source link

Problem in hdCBPS #19

Closed buutrg closed 5 years ago

buutrg commented 6 years ago

Hi, with this data, I cannot use hdCBPS to estimate the ATE with this code: fit = hdCBPS(W ~ MFAP3L + AGR2 + ABCC2, data = all_data, y =y)

it results in the error: Error in which(coef(cov1) != 0) : argument to 'which' is not logical

The data is here: https://drive.google.com/file/d/1orNh-3ScT1CKzKuZTcjYTgarzcecEiPc/view?usp=sharing

How can I solve it? Thanks!

psdsam commented 6 years ago

Hi,

Thank you for your interest. We have noticed this problem and the latest version on Github has this problem fixed. Please use the following command to download the latest version from Github. We will update the CRAN version soon.

Please let me know if this solves the problem.

Best,

Sida

from github

library(devtools) install_github("kosukeimai/CBPS", dependencies = TRUE)

On Mon, Oct 22, 2018 at 1:41 AM thanhbuu04 notifications@github.com wrote:

Hi, with this data, I cannot use hdCBPS to estimate the ATE with this code: fit = hdCBPS(W ~ MFAP3L + AGR2 + ABCC2, data = all_data, y =y)

it results in the error: Error in which(coef(cov1) != 0) : argument to 'which' is not logical

The data is here: https://drive.google.com/file/d/1orNh-3ScT1CKzKuZTcjYTgarzcecEiPc/view?usp=sharing

How can I solve it? Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kosukeimai/CBPS/issues/19, or mute the thread https://github.com/notifications/unsubscribe-auth/AMIIzpegvHlFPuA0ANO9eNFnMPQkfRouks5unYTLgaJpZM4Xy_2K .