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,
n = nrow(df)
)
h_strat_derived_outcome_vals(
theta,
df,
treatment,
time,
status,
strata,
covariates
)
theta |
( |
df |
( |
treatment |
( |
time |
( |
status |
( |
covariates |
( |
n |
( |
strata |
( |
Please note that the covariates
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 an additional column O_hat
containing the
derived outcome values. For the stratified version, the list of data frames is returned, one for each stratum.
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.