Hello,
I'm trying to mimic the count_regression radio function for my own r_tool based GLM. Below I have the code and a picture of the radio buttons. I copied the text from the count_regression but for some reason, my code does not recognize this. Any thoughts on what I'm doing wrong?
#get distribution from questions.
if (!is.XDF) {
if ('%Question.quasipoisson%' == "True")
the_family <- "quasipoisson(link='log')"
if ('%Question.gamma%' == "True")
the_family <- "gamma(link='log')"
if ('%Question.tweedie%' == "True")
the_family <- "tweedie(var.power=1.5,link.power=0)"
} else {
the_family <- "quasipoisson(link='log')"
# Run the model
piecewise2 <- glm(the_form, control = glm_control, weights = eufactor, family = the_family, data = the_data3)
