Performs Wald tests for significance of TVC effects, both overall and class-specific.
Usage
test_tvc_effects(
object,
covariate,
test = c("both", "overall", "class_specific")
)Examples
if (FALSE) { # \dontrun{
fit <- gmm_survey_tvc(
data = mcs_simulated,
id = "id", time = "age", outcome = "selfcontrol",
n_classes = 3, tvc = ~ ses, starts = 100
)
# Test significance of SES effect
test_results <- test_tvc_effects(fit, covariate = "ses")
print(test_results)
} # }