malucalle/selbal

selbal does not return a fitted GLM object if draw = FALSE

Opened this issue · 1 comments

mmp3 commented

Using the example from the documentation for selbal:

x <- HIV[,1:60]
y <- HIV[,62]
Bal <- selbal(x,y)

Then Bal[[8]] contains a GLM object, as it should.

But if we set draw = FALSE for the same command:

x <- HIV[,1:60]
y <- HIV[,62]
Bal2 <- selbal(x,y,draw=FALSE)

Then none of the elements of the Bal2 list are a fitted GLM object.

The last element, now named glm, is the GLM object
Thank you