cor_test: Simple wrapper around cor.test for y ~ x style formula input

View source: R/cor_test.R

cor_testR Documentation

Simple wrapper around cor.test for y ~ x style formula input

Description

Intended for use within the function tax_model

Usage

cor_test(formula, data, ...)

Arguments

formula

a formula in form y ~ x

data

dataframe

...

passed to cor.test

Examples

data("shao19")
ps <- shao19 %>%
  ps_filter(family_role == "mother") %>%
  tax_filter(min_prevalence = 20) %>%
  tax_agg("family")

cors <- ps %>% tax_model(
  rank = "family", variables = list("age", "number_reads"), type = cor_test
)

tax_models_get(cors)


david-barnett/microViz documentation built on April 17, 2025, 4:25 a.m.