get_covariates_table: Create covariate table for the summary part and the table of...

View source: R/qa_get_covariates_table.R

get_covariates_tableR Documentation

Create covariate table for the summary part and the table of model parameter covariate relationship, resulting improvement in OFV and estimated covariate coefficient. Furthermore, the sum of all univariate improvements in OFV ignoring between covariate correlations (sum(SCMu)), as well as joint improvement in OFV when taking correlations into account (FREM).

Description

Create covariate table for the summary part and the table of model parameter covariate relationship, resulting improvement in OFV and estimated covariate coefficient. Furthermore, the sum of all univariate improvements in OFV ignoring between covariate correlations (sum(SCMu)), as well as joint improvement in OFV when taking correlations into account (FREM).

Usage

get_covariates_table(frem_table, scm_table, max_scm_table)

Arguments

frem_table

A data frame of one row with column names c("","dOFV","Add.params") or c("","dOFV") if frem model run crash or was not run.

scm_table

A data frame of model parameter covariate relationship, resulting improvement in OFV and estimated covariate coefficient. Column names c("","dOFV","Coef").

max_scm_table

A data frame of one row with column names c("","dOFV","Add.params") or c("","dOFV") if scm model run crash or was not run.

Value

A list of 2 elements: covariates_table - a data frames with two rows, one for frem record and one for scm record (for summary section) covariates_extra_table - a data frame of model parameter covariate relationship, resulting improvement in OFV and estimated covariate coefficient, with two extra rows - sum of all scm dofv values and frem dofv value (for covariates section)


UUPharmacometrics/PsNR documentation built on June 30, 2023, 8:34 a.m.