do_quick_check: Perform quick checks of inputs and outputs

View source: R/fct_inspection.R

do_quick_checkR Documentation

Perform quick checks of inputs and outputs

Description

This function performs multiple checks on user-defined columns.

Usage

do_quick_check(
  df,
  v_probs = NULL,
  v_utilities = NULL,
  v_costs = NULL,
  v_hr = NULL,
  v_rr = NULL,
  v_r = NULL,
  v_outcomes = NULL
)

Arguments

df

a dataframe.

v_probs

(a vector of) character. Name of variables containing probabilities.

v_utilities

(a vector of) character. Name of the variables containing utility values.

v_costs

(a vector of) character. Name of the variables containing cost estimates.

v_hr

(a vector of) character. Name of the variables containing hazard ratios.

v_rr

(a vector of) character. Name of the variables containing relative risks.

v_r

(a vector of) character. Name of the variables containing rates.

v_outcomes

(a vector of) character. Name of the variables containing outcomes of the model.

Value

A matrix.

Examples

# Checking costs and utility values of the example data
do_quick_check(df = df_pa,
               v_utilities = c("u_pfs", "u_pd"),
               v_costs = c("c_pfs", "c_pd", "c_thx")
               )

Xa4P/pacheck documentation built on April 14, 2025, 1:51 p.m.