Generates table of model parameter esitmates and statistics

tabulate_model_fit_parameters(
  fit,
  trt_col_name = "TRTG",
  tafd_col_name = "TAFD",
  id_col_name = "ID",
  conf_int = 0.95,
  decimals = 2,
  show_standard_error = FALSE,
  scientific = TRUE,
  title = NULL,
  ...
)

Arguments

fit

An nlme::lme model object from model fitting

trt_col_name

A string of column name of trt used in model fitting

tafd_col_name

A string of column name of tafd used in model fitting

id_col_name

A string of column name of id used in model fitting for random effects

conf_int

Numeric confidence interval level (default: 0.9)

decimals

Number of decimals to format table to, default is 2

show_standard_error

Boolean that displays standard error of fixed effects estimates in table

scientific

Boolean for converting numbers to scientific notation if less than decimals

title

Optional string for adding tab_header. It will be wrapped in gt::md()

...

Optional additional arguments for gt::tab_options

Value

a gt table

Examples

data_proc <- preprocess(cqtkit_data_verapamil)
fit <- fit_prespecified_model(
  data_proc,
  deltaQTCF,
  ID,
  CONC,
  deltaQTCFBL,
  TRTG,
  TAFD,
  "REML",
  TRUE
)

tabulate_model_fit_parameters(fit, "TRTG", "TAFD", "ID")
Parameters Estimate [95% CI] p-value
Intercept −8.75 [−1.31 × 101, −4.35] 1.05 × 10−4
CONC 7.85 × 10−3 [−8.34 × 10−3, 2.40 × 10−2] 3.41 × 10−1
deltaQTCFBL −6.49 × 10−1 [−7.28 × 10−1, −5.70 × 10−1] 4.78 × 10−49
Verapamil HCL 2.77 [1.51, 4.03] 1.82 × 10−5
1 HR 4.08 [1.81, 6.35] 4.45 × 10−4
1.5 HR 2.25 [2.75 × 10−2, 4.48] 4.72 × 10−2
2 HR 6.67 [4.24, 9.11] 1.07 × 10−7
2.5 HR 5.60 [3.15, 8.06] 8.89 × 10−6
3 HR 2.96 [7.63 × 10−1, 5.16] 8.36 × 10−3
3.5 HR −4.16 × 10−1 [−2.65, 1.82] 7.14 × 10−1
4 HR 1.50 [−6.87 × 10−1, 3.69] 1.78 × 10−1
5 HR −4.94 × 10−1 [−2.69, 1.70] 6.59 × 10−1
6 HR 1.16 [−1.20, 3.52] 3.33 × 10−1
7 HR −2.03 × 10−1 [−2.57, 2.16] 8.66 × 10−1
8 HR −8.59 × 10−1 [−3.15, 1.43] 4.61 × 10−1
12 HR −4.18 [−6.48, −1.89] 3.74 × 10−4
14 HR −2.98 [−5.70, −2.58 × 10−1] 3.19 × 10−2
24 HR 1.62 [−1.12, 4.37] 2.46 × 10−1
IIV(Intercept) 1.01 × 101 [7.22, 1.40 × 101]
Residual Error 6.18 [5.84, 6.54]