get_node_val {jlctree} | R Documentation |
Computes the test statistic at the current node.
Description
Computes the test statistic at the current node. Not to be called directly by the user.
Usage
get_node_val(f1, f2, data, lrt = TRUE, ...)
Arguments
f1 |
a two-sided formula of the fitted survival model, without the longitudinal outcome in
the right side of the formula. Only needed when |
f2 |
a two-sided formula of the fitted survival model, same as |
data |
a data.frame containing covariates in |
lrt |
if TRUE, use likelihood ratio test, otherwise use Wald test. Default is TRUE. |
... |
further arguments to pass to or from other methods. |
Value
The test statistic at the current node.
See Also
Examples
data(data_timevar);
f1 <- Surv(time_L, time_Y, delta)~X3+X4+X5;
f2 <- Surv(time_L, time_Y, delta)~y+X3+X4+X5;
get_node_val(f1, f2, data_timevar, lrt=TRUE);
[Package jlctree version 0.0.2 Index]