chadhazlett / KBAL

Kernel Balancing project
10 stars 7 forks source link

Error checking that covariates are stored as a matrix #31

Open danmckinleythompson opened 2 years ago

danmckinleythompson commented 2 years ago

Line 997 in functions.R checks that the class of allx is a matrix, but class(matrix) is now a vector c("matrix", "array") so the check fails. Editing line 997 to say if("matrix" %in% class(allx)){ should work