| derived_outcome_vals | R Documentation |
Compute the derived outcome values based on a given log hazard ratio.
h_derived_outcome_vals(
theta,
df,
treatment,
time,
status,
covariates,
randomization_strata,
n = nrow(df)
)
h_strat_derived_outcome_vals(
theta,
df,
treatment,
time,
status,
strata,
covariates,
randomization_strata
)
theta |
( |
df |
( |
treatment |
( |
time |
( |
status |
( |
covariates |
( |
randomization_strata |
( |
n |
( |
strata |
( |
Please note that the covariates and randomization_strata must not include index,
treatment, time, status to avoid naming conflicts.
A data frame containing the same data as the input df, but restructured with standardized column names
index, treatment, time, status, the covariates and randomization stratification variables,
and an additional column O_hat containing the derived outcome values.
For the stratified version, the computations are done separately by stratum, and
the resulting data.frame contains an additional .stratum column indicating the stratum number.
h_derived_outcome_vals(): calculates the derived outcome values for the overall data set.
h_strat_derived_outcome_vals(): calculates the derived outcome values for each stratum separately.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.