malucalle / selbal

selbal: selection of balances for microbial signatures
32 stars 15 forks source link

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

Open mmp3 opened 3 years ago

mmp3 commented 3 years ago

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.

malucalle commented 3 years ago

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