As expected, variable Treatment is highly significant.
Then I try
konfound(glmStroke, Treatment)
And I get:
Note that for a non-linear model, impact threshold should not be interpreted. Note that this output is calculated based on the correlation-based approach used in mkonfound() Error in if (est_eff < 0) { : argument is of length zero
Hmm, not sure how to interpret this error. Your package looks great, but I can't figure out how to get around this one:
glmStroke = glm(postOpStroke ~ Treatment, data = indexMsens)
Model made without a problem
summary(glmStroke)
Shows:
Call: glm(formula = postOpStroke ~ Treatment, data = indexMsens)
Deviance Residuals: Min 1Q Median 3Q Max -0.02601 -0.02601 -0.01860 -0.01860 0.98140
(Intercept) 0.0186043 0.0009451 19.684 < 2e-16 *** TreatmentCEA 0.0074086 0.0013365 5.543 2.98e-08 ***
As expected, variable Treatment is highly significant.
Then I try
konfound(glmStroke, Treatment)
And I get:
Note that for a non-linear model, impact threshold should not be interpreted. Note that this output is calculated based on the correlation-based approach used in mkonfound() Error in if (est_eff < 0) { : argument is of length zero
These are the variables:
I've tried changing the variable type, glm model parameters, and nothing seems to work. An advice would be appreciated!