View source: R/fct_inspection.R
check_mean_qol | R Documentation |
This function checks whether the mean quality of life outcome of each iteration remain between the maximum and minimum utility values of the specific iteration.
check_mean_qol(df, t_qaly, t_ly, u_values, max_view = 100)
df |
a dataframe. |
t_qaly |
character. Name of the variable containing the total undiscounted quality-adjusted life years. |
t_ly |
character. Name of the variable containing the total undiscounted life years. |
u_values |
(vector of) character. Name(s) of the variable containing the utility values. |
max_view |
numeric. Determines the number of iterations to display which do not fulfil the check. Default is 100. |
A matrix.
# Check whether mean quality of life is within min-max utility values
check_mean_qol(df = df_pa,
t_ly = "t_ly_comp",
t_qaly = "t_qaly_comp",
u_values = c("u_pfs", "u_pd")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.