ddFixed {dynamichazard} | R Documentation |
Functions used in formula of ddhazard
for time-invariant effects. ddFixed_intercept
is only used for the intercept.
ddFixed(object) ddFixed_intercept(random_intercept = FALSE)
object |
expression that would be used in formula. E.g. |
random_intercept |
|
# we can get a time-invariant effect of `x1` by ## Not run: ddhazard(Surv(stop, event) ~ ddFixed(x1), data) ## End(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) ## End(Not run)