Get a data.frame of Spearman correlation between covariates

cov_cor(data, meta_data)

Arguments

data

A data.frame of the pk data

meta_data

A data.frame of meta data

Value

A data.frame summarizing the data

Examples


# Summarize data by ID
sum_data <- data_501 |>
  dplyr::group_by(ID) |>
  dplyr::summarise_all(dplyr::first)

cov_cor(sum_data, meta_data_501)
#>   Covariates                                              Weight
#> 1     Weight                                                    
#> 2        Age                                     0.207 (p:0.113)
#> 3        Sex (Intercept):74.147 (p<0.001)/Female:5.914 (p:0.094)
#>                                                    Age
#> 1                                                     
#> 2                                                     
#> 3 (Intercept):50.906 (p<0.001)/Female:-0.263 (p:0.936)