I am trying to connect logistic regression through tableau and r integration
SCRIPT_REAL('dat <- data.frame(DEP_VAR=.arg1, IND_VAR1=.arg2,
IND_VAR2=.arg3, IND_VAR3=.arg4);
model <- glm(DEP_VAR~IND_VAR1+IND_VAR2+IND_VAR3, data =
dat, family = binomial(link = "logit"));
prob <- predict(model,newdata=dat,type="response")',
AVG([DEP_VAR]), AVG([IND_VAR1]), AVG([IND_VAR2]), AVG([IND_VAR3]))
I have tried this Tableau script and getting an error
Error in base::parse(text = .cmd) : :1:32: unexpected symbol 1: dat <- data.frame(DEP_VAR=.arg1, IND_VAR1 ^"