by AEH
Last Updated October 20, 2018 19:26 PM

I would like to plot the interaction term from a `coxph`

model from the `survival`

package in r. I have tried `interact_plot`

from the `jtool`

package, but I keep getting errors and suspect that interact_plot does not support `coxph`

objects.

My model is

```
library(survival)
hiitime.coxph<-coxph(formula=Surv(rep(1, 77748L), y) ~
log(x1+1)*x2+
strata(id) + cluster(id2),data = data, method = "breslow")
```

The response `y`

is binomial and `x1`

and `x2`

are both continuous. What I need is a plot that visualises how the probability of `y`

varies with `x1`

for different values of `x2`

.

Any recommendations other than `interact_plot`

?

- ServerfaultXchanger
- SuperuserXchanger
- UbuntuXchanger
- WebappsXchanger
- WebmastersXchanger
- ProgrammersXchanger
- DbaXchanger
- DrupalXchanger
- WordpressXchanger
- MagentoXchanger
- JoomlaXchanger
- AndroidXchanger
- AppleXchanger
- GameXchanger
- GamingXchanger
- BlenderXchanger
- UxXchanger
- CookingXchanger
- PhotoXchanger
- StatsXchanger
- MathXchanger
- DiyXchanger
- GisXchanger
- TexXchanger
- MetaXchanger
- ElectronicsXchanger
- StackoverflowXchanger
- BitcoinXchanger
- EthereumXcanger