# NOT RUN {
data <- test_data(50, 20, 3, 0, 0, 0.01)
tca.mdl <- tca(data$X, data$W)
tca.mdl.subset <- tcasub(tca.mdl, rownames(data$X)[1:10])
y <- matrix(rexp(50, rate=.1), ncol=1)
# run tcareg test with an outcome y:
res <- tcareg(data$X[1:10,], tca.mdl.subset, y, test = "joint", save_results = FALSE)
# }
Run the code above in your browser using DataLab