kosukeimai / CBPS

R package: CBPS
27 stars 10 forks source link

norm1 missing in CBPS.2Treat when standardize = FALSE #12

Closed ngreifer closed 6 years ago

ngreifer commented 6 years ago

In CBPS.2Treat, when standardize = FALSE, no value to norm1 is assigned, but the subsequent lines call norm1, yielding an error. This might be fixed by adding

else {
    norm1 <- 1
    norm2 <- 1
}

at line 265 in CBPSBinary.R.

I'll add this.