get_lrt {jlctree}R Documentation

Computes the likelihood ratio test statistic.

Description

Computes the likelihood ratio test statistic. Not to be called directly by the user.

Usage

get_lrt(f1, f2, data, stable = TRUE, cov.max = 1e+05)

Arguments

f1

a two-sided formula of the fitted survival model, without the longitudinal outcome in the right side of the formula.

f2

a two-sided formula of the fitted survival model, same as f1 but with the longitudinal outcome being the first covariate on the right side of the formula.

data

a data.frame containing the covariates in both f1 and f2.

stable

a parameter, see also jlctree.control.

cov.max

a parameter, see also jlctree.control.

Value

The likelihood ratio test statistic.

See Also

get_node_val

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_lrt(f1, f2, data_timevar);


[Package jlctree version 0.0.2 Index]