View source: R/U04-censoring-scores.R
| estimate_censoring_score_weibull | R Documentation |
Estimate censoring scores P(C >= T | X) using Weibull or Cox models fit separately within each treatment group. Estimate Censoring Scores Using Weibull Regression
estimate_censoring_score_weibull(
data,
time_var,
treatment_var,
formula,
control = list(maxiter = 350)
)
data |
Data frame. |
time_var |
Name of time variable. |
treatment_var |
Name of treatment variable. |
formula |
Censoring model formula. Use |
control |
Control parameters for |
Fits Weibull models within each treatment group. Censoring scores computed as:
K_c^{(j)}(t, X) = \exp(-\exp(X'\theta_j) \cdot t^{\gamma_j})
where \theta_j = -\beta_j/\sigma_j, \gamma_j = 1/\sigma_j.
List with class "censoring_score_weibull":
censoring_models |
Fitted |
censoring_scores |
P(C >= T_i | Z_i, X_i) for observed treatment. |
censoring_matrix |
(n x J) matrix of P(C >= T_i | Z=j, X_i). |
n_levels |
Number of treatment levels. |
treatment_levels |
Sorted treatment values. |
model_type |
"weibull". |
parameters |
Transformed parameters ( |
linear_predictors_matrix |
(n x J) matrix of linear predictors. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.