get_scm_table: Table of model parameter-covariate relationship, resulting...

View source: R/qa_get_scm_table.R

get_scm_tableR Documentation

Table of model parameter-covariate relationship, resulting improvement in OFV and estimated covariate coefficient.

Description

Table of model parameter-covariate relationship, resulting improvement in OFV and estimated covariate coefficient.

Usage

get_scm_table(scm_directory, nr_cov, nr_param, skip = NULL, quiet = F)

Arguments

scm_directory

Scm run directory. Will search for the file raw_results_scm.csv. Columns relation, ofv, step.number and all columns with estimated covariate coefficient values (like, CLWGT.4.1) will be used in the function.

nr_cov

Number of covariates from the scm point of view, because categorical covariates can be binarized.

nr_param

Numbner of parameters.

skip

A character vector with names of the skipped parts in the qa run. Will check if "scm" is one of the vector elements. By default skip=NULL.

quiet

A logical indicating whether function should not write the warning message if some file not found. By default quiet=FALSE.

Value

A list of 3 elements: scm_table - a data frame of model parameter covariate relationship, resulting improvement in OFV and estimated covariate coefficient max_scm_table - a data frame with only one row from scm_table with the highest dofv value scm_files_exists - logical argument indicating whether needed file exists in the input directory and whether there is at least one covariate and one parameter.


UUPharmacometrics/pmutils documentation built on July 4, 2023, 1:15 a.m.