I'm running the following analysis and trying to plot the inverse logit of my model:
R.plot(formula, data=data, ylab = 'P(outcome = 1 | outcome)', xlab = 'SURVRATE: Probability of Survival after 5 Years', xaxp = c(0, 95, 19))
a = R.coef(mod1)
b = R.coef(mod1)
R.curve(invlogit(a + b*R.x))
TypeError: unsupported operand type(s) for *: 'float' and 'ListVector'
Kludgey solution is to just use the
rmagic commands. It appears to be the path of least resistance to convert all my R code to the rpy2 equivalent.