cfb_ratio: ratio change from baseline

View source: R/change_from_baseline.R

cfb_ratioR Documentation

ratio change from baseline

Description

ratio change from baseline

Usage

cfb_ratio(.df, .col, ..., groups = "ID", .name = NULL,
  .name_fn = function(x) {     paste0("CFBR_", x) }, digits = 3,
  .agg_fn = NULL)

Arguments

.df

data frame

.col

column name (unquoted)

...

filter functions (unquoted) to establiash baseline row, defaults to first row per group

groups

vector of groups, defaults to "ID"

.name

name of created column (quoted). Defaults to CFBR_<.col>.

.name_fn

function to apply formatting to the given colun name

digits

number of digits to round final value to

.agg_fn

function to calculate an aggregate statistic for the baseline value


qPharmetra/PMDatR documentation built on April 7, 2024, 5:42 p.m.