kosukeimai / CBPS

R package: CBPS
27 stars 10 forks source link

lines 30-31 in CBPSMain.R is missing argument to function call #8

Closed HJ08003 closed 6 years ago

HJ08003 commented 7 years ago

There is a warning sign on lines 30-31 in CBPSMain.R for "missing argument to function call”

=== lines 30-31 === X <- if (!is.empty.model(mt)) model.matrix(mt, mf)#[,-2] else matrix(, NROW(Y), 0L)

kosukeimai commented 7 years ago

@christianfong and @ratkovic Do you know what's going on here? The first argument of matrix() is missing

HJ08003 commented 7 years ago

In the original CBPSMain.R, it is lines 30-31 in CBPSMain.R

christianfong commented 6 years ago

Just cleaning up. matrix() defaults were changed in a recent update to R. Problem has been resolved.