summarize_covariates_correlations: Continuous covariates correlations summary

View source: R/summarize_covariates_correlations.R

summarize_covariates_correlationsR Documentation

Continuous covariates correlations summary

Description

Returns a matrix of the selected continuous covariates correlations.

Usage

summarize_covariates_correlations(
  run,
  covariates = NULL,
  baseline_only = TRUE,
  correlation_method = NULL,
  auto_order = TRUE
)

Arguments

run

pmxploit NONMEM run object.

covariates

character vector of continous covariates names. Default is NULL, returning all continuous covariates.

baseline_only

logical. Consider only the baseline (= first) values of the subjects. Default is TRUE.

correlation_method

a character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman": can be abbreviated. If type = "scatterplot", "pearson" method will be used.

auto_order

logical. If type = "heatmap", auto-orders the matrix with respect to the distances between values. Default is TRUE.

split_by

character. Categorical to split the summary by.

Value

A matrix.

Examples

EXAMPLERUN %>% summarize_covariates_correlations()
EXAMPLERUN %>% summarize_covariates_correlations(auto_order = FALSE)

pnolain/pmxploit documentation built on Jan. 31, 2024, 1:16 p.m.