get_ii_table: Get influential individuals table.

View source: R/qa_get_ii_table.R

get_ii_tableR Documentation

Get influential individuals table.

Description

Get influential individuals table.

Usage

get_ii_table(
  cdd_directory,
  model.filename,
  cutoff,
  max_rows,
  skip = NULL,
  nonlinear,
  quiet = F
)

Arguments

cdd_directory

Cdd run directory. Will search for the files skipped_individuals1.csv and raw_results_"model name"_linbase.csv (if nonlinear=F) or raw_results_"model name".csv (if nonlinear=T)

model.filename

The base model file name.

cutoff

The dOFV cutoff value for influential individual identification.

max_rows

Number of infuential individuals to print in the pdf file.

skip

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

nonlinear

A logical indicating whether nonlinear qa have been run.

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 7 arguments. cdd_files_exist - a logical indicating whether needed files exist in the input directory. cdd.data - a data frame of all id numbers and dOFV values for each id. all_dofv - a vector of all dofv values. cdd_highest_dofv - A data frame of one most influential individual. Will be used for summary table. ii_table - A data frame of all influential individuals, where max row number is set to max_rows. infl_id - A numeric vector with all influential individual ID numbers. fig_height_infl - A numeric for idividual plots hight.


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