pred_fun_D: Fit Competing Event Model

View source: R/pred.R

pred_fun_DR Documentation

Fit Competing Event Model

Description

This internal function fits a generalized linear model (GLM) for the competing event variable using the observed data.

Usage

pred_fun_D(model, compevent_restrictions, obs_data, model_fits)

Arguments

model

Model statement for competing event variable.

compevent_restrictions

List of vectors. Each vector containins as its first entry a condition and its second entry an integer. When the condition is TRUE, the competing event variable is simulated according to the fitted model; when the condition is FALSE, the competing event variable takes on the value in the second entry.

obs_data

Data on which the model is fit.

model_fits

Logical scalar indicating whether to return the fitted models. The default is FALSE.

Value

Fitted model for the competing event variable.


CausalInference/gfoRmula documentation built on Oct. 1, 2024, 8:36 p.m.