Skip to contents

Cross-tabulates each subject's baseline category (at the lowest AVISITN) against the category at the last post-baseline visit, by treatment.

Usage

tbl_shift(adx, trt_var = "TRT01A", paramcd = NULL, config = NULL)

Arguments

adx

A BDS dataset (AVISIT, optionally AVISITN and PARAMCD).

trt_var

Treatment variable (resolved with tlf_resolve_trt()).

paramcd

Optional PARAMCD filter.

config

A tlf_config(); NULL resolves through tlf_get_config().

Value

A tlf_table.

Examples

tbl_shift(ex_adlb, paramcd = "ALT")
#> <tlf_table> 9 row(s) x 5 column(s)
#>  Treatment  Baseline Endpoint: Low Endpoint: Normal Endpoint: High
#>  Drug 10 mg Low      0             0                0             
#>             Normal   0             15               4             
#>             High     0             0                1             
#>  Drug 20 mg Low      0             0                0             
#>             Normal   0             7                12            
#>             High     0             0                1             
#>  Placebo    Low      0             0                0             
#>             Normal   0             16               3             
#>             High     0             0                1             
#> Note: Categories are relative to the reference range (ANRLO/ANRHI). Endpoint is the last post-baseline visit.