te_stats_glm_logit-class | R Documentation |
The classes and (internal) methods defined for using stats::glm to fit the logistic regression models.
## S4 method for signature 'te_stats_glm_logit'
fit_weights_model(object, data, formula, label)
## S4 method for signature 'te_stats_glm_logit'
fit_outcome_model(object, data, formula, weights = NULL)
## S4 method for signature 'te_stats_glm_logit_outcome_fitted'
predict(
object,
newdata,
predict_times,
conf_int = TRUE,
samples = 100,
type = c("cum_inc", "survival")
)
object |
Object to dispatch method on |
data |
|
formula |
|
label |
A short string describing the model. |
weights |
|
newdata |
Baseline trial data that characterise the target trial population that marginal cumulative incidences
or survival probabilities are predicted for. |
predict_times |
Specify the follow-up visits/times where the marginal cumulative incidences or survival probabilities are predicted. |
conf_int |
Construct the point-wise 95-percent confidence intervals of cumulative incidences for the target trial population under treatment and non-treatment and their differences by simulating the parameters in the marginal structural model from a multivariate normal distribution with the mean equal to the marginal structural model parameter estimates and the variance equal to the estimated robust covariance matrix. |
samples |
Number of samples used to construct the simulation-based confidence intervals. |
type |
Specify cumulative incidences or survival probabilities to be predicted. Either cumulative incidence
( |
fit_weights_model(te_stats_glm_logit)
: Fit the weight models object via calculate_weights on trial_sequence
fit_outcome_model(te_stats_glm_logit)
: Fit the outcome model object via fit_msm on trial_sequence
predict(te_stats_glm_logit_outcome_fitted)
: Predict from the fitted model object via predict on trial_sequence
Other model_fitter_classes:
te_parsnip_model-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.