# NOT RUN {
# we can get a time-invariant effect of `x1` by
# }
# NOT RUN {
ddhazard(Surv(stop, event) ~ ddFixed(x1), data)
# }
# NOT RUN {
# all of the calls below will yield the same result with a time-invariant
# intercept:
# }
# NOT RUN {
ddhazard(Surv(stop, event) ~ ddFixed_intercept() + x1, data)
ddhazard(Surv(stop, event) ~ -1 + ddFixed_intercept() + x1, data)
# }
Run the code above in your browser using DataLab